.gitlab-ci.yml 1.2 KB
Newer Older
Ralf Jung's avatar
Ralf Jung committed
1
2
image: ralfjung/opam-ci:latest

Ralf Jung's avatar
Ralf Jung committed
3
4
5
stages:
  - build

Ralf Jung's avatar
Ralf Jung committed
6
variables:
Ralf Jung's avatar
Ralf Jung committed
7
  CPU_CORES: "10"
Ralf Jung's avatar
Ralf Jung committed
8
9

.template: &template
Ralf Jung's avatar
Ralf Jung committed
10
  stage: build
Ralf Jung's avatar
Ralf Jung committed
11
  tags:
Ralf Jung's avatar
Ralf Jung committed
12
  - fp
Ralf Jung's avatar
Ralf Jung committed
13
14
15
16
17
18
19
20
  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
21
22
  # maybe validate
  - 'if [[ -n "$VALIDATE" ]]; then make validate; fi'
Ralf Jung's avatar
Ralf Jung committed
23
24
25
26
27
28
29
  cache:
    key: "$CI_JOB_NAME"
    paths:
    - opamroot/
  only:
  - master
  - /^ci/
Ralf Jung's avatar
Ralf Jung committed
30
31
  except:
  - triggers
Ralf Jung's avatar
Ralf Jung committed
32

Ralf Jung's avatar
Ralf Jung committed
33
34
## Build jobs

Ralf Jung's avatar
Ralf Jung committed
35
build-coq.8.7.1:
Ralf Jung's avatar
Ralf Jung committed
36
37
  <<: *template
  variables:
Ralf Jung's avatar
Ralf Jung committed
38
    OPAM_PINS: "coq version 8.7.1   coq-mathcomp-ssreflect version 1.6.4"
Ralf Jung's avatar
Ralf Jung committed
39
  tags:
Ralf Jung's avatar
fix CI    
Ralf Jung committed
40
  - fp-timing
Ralf Jung's avatar
Ralf Jung committed
41
42
43
44
  artifacts:
    paths:
    - build-time.txt
    - build-env.txt
Ralf Jung's avatar
Ralf Jung committed
45

Ralf Jung's avatar
Ralf Jung committed
46
47
48
49
50
build-coq.8.6.1:
  <<: *template
  variables:
    OPAM_PINS: "coq version 8.6.1   coq-mathcomp-ssreflect version 1.6.4"

51
build-iris.dev:
Ralf Jung's avatar
Ralf Jung committed
52
53
  <<: *template
  variables:
54
    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
55
  except:
Ralf Jung's avatar
Ralf Jung committed
56
57
  only:
  - triggers