-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.gitlab-ci.yml
72 lines (67 loc) · 1.49 KB
/
.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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
stages:
- build
- test
- package
variables:
SBT_OPTS: "-Dsbt.global.base=cache/sbt/sbtboot -Dsbt.boot.directory=cache/sbt/boot -Dsbt.ivy.home=cache/sbt/ivy"
GIT_SUBMODULE_STRATEGY: normal
build:
image: registry.gitlab.com/unruh/qrhl-tool/build-image
stage: build
script:
- if [ $[RANDOM % 100] = 0 ]; then echo Flushing cache.; rm -rf isabelle-temp tmp cache; fi # Flush cache approx. every 100. build
- make qrhl.zip
- echo isabelle. | QRHL_FORCE_BUILD=1 bin/qrhl
artifacts:
paths:
- target
- project
- qrhl.zip
- doc
expire_in: 30 days
when: always
cache:
key: main
paths:
- isabelle-temp/
- cache/
test:
image: registry.gitlab.com/unruh/qrhl-tool/build-image
stage: test
script: sbt "testOnly -- -l SuperSlow"
artifacts:
reports:
junit: target/test-reports/TEST-*.xml
cache:
key: main
paths:
- isabelle-temp/
- cache/
policy: pull
test-distrib:
image: registry.gitlab.com/unruh/qrhl-tool/build-image
stage: test
script:
- java -version
- unzip -d tmp qrhl.zip
- set -ex && cd tmp/*/examples && for i in *.qrhl; do ../bin/qrhl "$i"; done
cache:
key: test-distrib
paths:
- tmp/*/isabelle-temp
artifacts:
untracked: true
when: on_failure
expire_in: 1d
package:
stage: package
script: echo Nothing to do.
artifacts:
paths:
- qrhl.zip
cache:
key: main
paths:
- isabelle-temp/
- cache/
policy: pull