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

3 4 5
stages:
  - build

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

Ralf Jung's avatar
Ralf Jung committed
9
.template: &template
10
  stage: build
Zhen Zhang's avatar
Zhen Zhang committed
11
  tags:
Ralf Jung's avatar
Ralf Jung committed
12
  - fp-timing
Zhen Zhang's avatar
Zhen Zhang committed
13 14
  script:
  # prepare
15
  - . build/opam-ci.sh $OPAM_PINS
Ralf Jung's avatar
Ralf Jung committed
16
  - env | egrep '^(CI_BUILD_REF|CI_RUNNER)' > build-env.txt
Zhen Zhang's avatar
Zhen Zhang committed
17
  # build
Ralf Jung's avatar
Ralf Jung committed
18 19
  - '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'
20
  - '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
  - 'if test -n "$VALIDATE" && (( RANDOM % 10 == 0 )); then make validate; fi'
Zhen Zhang's avatar
Zhen Zhang committed
22
  cache:
23
    key: "$CI_JOB_NAME"
Zhen Zhang's avatar
Zhen Zhang committed
24 25 26 27
    paths:
    - opamroot/
  only:
  - master
Ralf Jung's avatar
Ralf Jung committed
28
  - /^ci/
Ralf Jung's avatar
Ralf Jung committed
29

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

Ralf Jung's avatar
Ralf Jung committed
37
build-coq.8.6.1:
Ralf Jung's avatar
Ralf Jung committed
38 39
  <<: *template
  variables:
Ralf Jung's avatar
Ralf Jung committed
40
    OPAM_PINS: "coq version 8.6.1   coq-mathcomp-ssreflect version 1.6.4"
41
    VALIDATE: "1"
Ralf Jung's avatar
Ralf Jung committed
42 43 44 45
  artifacts:
    paths:
    - build-time.txt
    - build-env.txt
46 47 48 49 50 51
  except:
  - triggers

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