.gitlab-ci.yml 1.23 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
  except:
  - triggers
Ralf Jung's avatar
Ralf Jung committed
32
  - schedules
Ralf Jung's avatar
Ralf Jung committed
33 34

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

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

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

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