.gitlab-ci.yml 1.4 KB
Newer Older
Ralf Jung's avatar
Ralf Jung committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
image: ralfjung/opam-ci:latest

variables:
  CPU_CORES: "9"

.template: &template
  tags:
  - fp-timing
  script:
  # prepare
  - . build/opam-ci.sh $OPAM_PINS
  - env | egrep '^(CI_BUILD_REF|CI_RUNNER)' > build-env.txt
  # build
  - 'time make -k -j$CPU_CORES TIMED=y 2>&1 | tee build-log.txt'
  - 'if fgrep Axiom build-log.txt >/dev/null; then exit 1; fi'
  - 'cat build-log.txt | egrep "[a-zA-Z0-9_/-]+ \((real|user): [0-9]" | tee build-time.txt'
Ralf Jung's avatar
Ralf Jung committed
17
  - 'if test -n "$VALIDATE"; then make validate; fi'
Ralf Jung's avatar
Ralf Jung committed
18
19
20
21
22
23
24
25
  cache:
    key: "$CI_JOB_NAME"
    paths:
    - opamroot/
  only:
  - master
  - /^ci/

Ralf Jung's avatar
Ralf Jung committed
26
build-coq.8.7.1:
Ralf Jung's avatar
Ralf Jung committed
27
28
  <<: *template
  variables:
Ralf Jung's avatar
Ralf Jung committed
29
    OPAM_PINS: "coq version 8.7.1   coq-mathcomp-ssreflect version 1.6.4"
Ralf Jung's avatar
Ralf Jung committed
30
31
32
33
34
35
  except:
  - triggers

build-coq.8.6.1:
  <<: *template
  variables:
Ralf Jung's avatar
Ralf Jung committed
36
    OPAM_PINS: "coq version 8.6.1   coq-mathcomp-ssreflect version 1.6.4"
Ralf Jung's avatar
Ralf Jung committed
37
38
39
40
41
42
43
  artifacts:
    paths:
    - build-time.txt
    - build-env.txt
  except:
  - triggers

Ralf Jung's avatar
Ralf Jung committed
44
build-iris.dev-coq.8.7.1:
Ralf Jung's avatar
Ralf Jung committed
45
46
  <<: *template
  variables:
Ralf Jung's avatar
Ralf Jung committed
47
    OPAM_PINS: "coq version 8.7.1   coq-mathcomp-ssreflect version 1.6.4   coq-iris.dev git https://gitlab.mpi-sws.org/FP/iris-coq.git#$IRIS_REV"
Ralf Jung's avatar
Ralf Jung committed
48
49
50
51
52
53
54
55
    VALIDATE: "0" # validation broken in Coq 8.7
  only:
  - triggers

build-iris.dev-coq.dev:
  <<: *template
  variables:
    OPAM_PINS: "coq version dev   coq-mathcomp-ssreflect version dev   coq-iris.dev git https://gitlab.mpi-sws.org/FP/iris-coq.git#$IRIS_REV"
Ralf Jung's avatar
Ralf Jung committed
56
57
  only:
  - triggers