.gitlab-ci.yml 1.2 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
variables:
Ralf Jung's avatar
Ralf Jung committed
7
  CPU_CORES: "10"
Ralf Jung's avatar
Ralf Jung committed
8

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
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 22
  # maybe validate
  - 'if [[ -n "$VALIDATE" ]]; then make validate; fi'
Zhen Zhang's avatar
Zhen Zhang committed
23
  cache:
24
    key: "$CI_JOB_NAME"
Zhen Zhang's avatar
Zhen Zhang committed
25 26 27 28
    paths:
    - opamroot/
  only:
  - master
Ralf Jung's avatar
Ralf Jung committed
29
  - /^ci/
Ralf Jung's avatar
Ralf Jung committed
30 31 32 33
  except:
  - triggers

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

Ralf Jung's avatar
Ralf Jung committed
35
build-coq.8.7.1:
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 40 41 42 43 44
  tags:
  - fp-timing
  artifacts:
    paths:
    - build-time.txt
    - build-env.txt
45

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

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