.gitlab-ci.yml 864 Bytes
Newer Older
1 2
image: ralfjung/opam-ci:latest

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

Ralf Jung's avatar
Ralf Jung committed
6 7
stdpp-coq8.5:
  tags:
Ralf Jung's avatar
Ralf Jung committed
8
  - fp-timing
Ralf Jung's avatar
Ralf Jung committed
9 10 11 12
  script:
  # prepare
  - . build/opam-ci.sh coq 8.5.3
  # build
Ralf Jung's avatar
Ralf Jung committed
13
  - 'time make -j$CPU_CORES'
Ralf Jung's avatar
Ralf Jung committed
14 15 16 17 18 19 20 21 22
  cache:
    key: "coq8.5"
    paths:
    - opamroot/
  only:
  - master
  - ci
  - timing

23 24
stdpp-coq8.6:
  tags:
Ralf Jung's avatar
Ralf Jung committed
25
  - fp-timing
26 27 28
  script:
  # prepare
  - . build/opam-ci.sh coq 8.6
Ralf Jung's avatar
Ralf Jung committed
29
  - env | egrep '^(CI_BUILD_REF|CI_RUNNER)' > build-env.txt
30
  # build
Ralf Jung's avatar
Ralf Jung committed
31
  - 'time make -j$CPU_CORES TIMED=y 2>&1 | tee build-log.txt'
32 33
  - 'if fgrep Axiom build-log.txt >/dev/null; then exit 1; fi'
  - 'cat build-log.txt | egrep "[a-zA-Z0-9_/-]+ \(user: [0-9]" | tee build-time.txt'
Ralf Jung's avatar
Ralf Jung committed
34
  - 'if (( RANDOM % 10 == 0 )); then make validate; fi'
35 36 37 38 39 40 41 42
  cache:
    key: "coq8.6"
    paths:
    - opamroot/
  only:
  - master
  - ci
  - timing
43 44 45
  artifacts:
    paths:
    - build-time.txt
Ralf Jung's avatar
Ralf Jung committed
46
    - build-env.txt