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

Ralf Jung's avatar
Ralf Jung committed
3 4 5
variables:
  CPU_CORES: "9"

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

26 27 28
build-coq8.7:
  <<: *template
  variables:
29 30 31
    OPAM_PINS: "coq version 8.7.dev   coq-mathcomp-ssreflect version dev"
  except:
  - triggers
32 33

build-coq8.6.1:
Ralf Jung's avatar
Ralf Jung committed
34 35
  <<: *template
  variables:
36
    OPAM_PINS: "coq version 8.6.1   coq-mathcomp-ssreflect version 1.6.1"
37
    VALIDATE: "1"
Ralf Jung's avatar
Ralf Jung committed
38 39 40 41
  artifacts:
    paths:
    - build-time.txt
    - build-env.txt
42 43 44 45 46 47
  except:
  - triggers

build-iris.dev:
  <<: *template
  variables:
48
    OPAM_PINS: "coq version 8.6.1   coq-mathcomp-ssreflect version 1.6.1   coq-iris.dev git https://gitlab.mpi-sws.org/FP/iris-coq.git#$REV"
49 50
  only:
  - triggers