.gitlab-ci.yml 1.11 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'
Zhen Zhang's avatar
Zhen Zhang committed
21
  cache:
22
    key: "$CI_JOB_NAME"
Zhen Zhang's avatar
Zhen Zhang committed
23 24 25 26
    paths:
    - opamroot/
  only:
  - master
Ralf Jung's avatar
Ralf Jung committed
27
  - /^ci/
Ralf Jung's avatar
Ralf Jung committed
28

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

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

build-iris.dev:
  <<: *template
  variables:
Ralf Jung's avatar
Ralf Jung committed
50
    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"
51 52
  only:
  - triggers