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

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

6
.template: &template
Ralf Jung's avatar
Ralf Jung committed
7
  tags:
Ralf Jung's avatar
Ralf Jung committed
8
  - fp-timing
Ralf Jung's avatar
Ralf Jung committed
9 10
  script:
  # prepare
11
  - . build/opam-ci.sh coq "$COQ_VERSION"
Ralf Jung's avatar
Ralf Jung committed
12
  - env | egrep '^(CI_BUILD_REF|CI_RUNNER)' > build-env.txt
13
  # build
14
  - 'time make -k -j$CPU_CORES TIMED=y 2>&1 | tee build-log.txt'
15
  - 'if fgrep Axiom build-log.txt >/dev/null; then exit 1; fi'
Ralf Jung's avatar
Ralf Jung committed
16
  - 'cat build-log.txt | egrep "[a-zA-Z0-9_/-]+ \((real|user): [0-9]" | tee build-time.txt'
17
  - 'if test -n "$VALIDATE" && (( RANDOM % 10 == 0 )); then make validate; fi'
18
  cache:
19
    key: "coq$COQ_VERSION"
20 21 22 23
    paths:
    - opamroot/
  only:
  - master
24 25
  - /^ci/

26 27 28 29 30 31

stdpp-coq8.7:
  <<: *template
  variables:
    COQ_VERSION: "8.7.dev"

32 33 34 35 36
stdpp-coq8.6.1:
  <<: *template
  variables:
    COQ_VERSION: "8.6.1"
    VALIDATE: 1
37 38 39
  artifacts:
    paths:
    - build-time.txt
Ralf Jung's avatar
Ralf Jung committed
40
    - build-env.txt
41 42 43 44 45 46

stdpp-coq8.6:
  <<: *template
  variables:
    COQ_VERSION: "8.6"