-
Notifications
You must be signed in to change notification settings - Fork 1
/
.gitlab-ci.yml
55 lines (41 loc) · 965 Bytes
/
.gitlab-ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
image: nfnty/arch-devel:latest
variables:
ZIPNAME: "git-merge-subtree2.zip"
LOGFILE: "test/log.txt"
stages:
- test
- deploy
before_script:
- pacman -S --noconfirm p7zip
- git config --global user.email "[email protected]"
- git config --global user.name "Gitlab-CI"
- export PATH="$CI_PROJECT_DIR:$PATH"
.artifact_expiration: &artifact_expiration
expire_in: 4 weeks
.test_template: &test_template
stage: test
artifacts:
<<: *artifact_expiration
when: on_failure
paths:
- "$LOGFILE"
test_subtree2-strategy:
<<: *test_template
script:
- test/subtree2/all.sh
test_subproject:
<<: *test_template
script:
- test/subproject/all.sh
deploy:
stage: deploy
dependencies: []
script:
- rm -rf test
- 7za a -tzip $ZIPNAME *
- sha256sum $ZIPNAME > $ZIPNAME.sha256
artifacts:
<<: *artifact_expiration
paths:
- "$ZIPNAME"
- "$ZIPNAME.sha256"