.gitlab-ci.yml 859 Bytes
Newer Older
Ralf Jung's avatar
Ralf Jung committed
1
image: ralfjung/opam-ci:latest
2

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

Ralf Jung's avatar
Ralf Jung committed
6
.template: &template
Ralf Jung's avatar
Ralf Jung committed
7
  tags:
Janno's avatar
Janno committed
8
  - fp-timing
Ralf Jung's avatar
Ralf Jung committed
9
  script:
Ralf Jung's avatar
Ralf Jung committed
10 11
  # prepare
  - . build/opam-ci.sh coq "$COQ_VERSION" coq-mathcomp-ssreflect "$SSR_VERSION"
Janno's avatar
Janno committed
12
  - env | egrep '^(CI_BUILD_REF|CI_RUNNER)' > build-env.txt
Ralf Jung's avatar
Ralf Jung committed
13
  # build
Ralf Jung's avatar
Ralf Jung committed
14
  - 'time make -k -j$CPU_CORES TIMED=y 2>&1 | tee build-log.txt'
Janno's avatar
Janno committed
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'
Ralf Jung's avatar
Ralf Jung committed
17
  - 'if test -n "$VALIDATE" && (( RANDOM % 10 == 0 )); then make validate; fi'
Ralf Jung's avatar
Ralf Jung committed
18
  cache:
Ralf Jung's avatar
Ralf Jung committed
19
    key: "coq$COQ_VERSION-ssr$SSR_VERSION"
Ralf Jung's avatar
Ralf Jung committed
20
    paths:
Janno's avatar
Janno committed
21
    - opamroot/
Ralf Jung's avatar
Ralf Jung committed
22 23
  only:
  - master
Ralf Jung's avatar
Ralf Jung committed
24 25
  - /^ci/

Ralf Jung's avatar
Ralf Jung committed
26
igps-coq8.6.1:
Ralf Jung's avatar
Ralf Jung committed
27 28 29 30 31
  <<: *template
  variables:
    COQ_VERSION: "8.6.1"
    SSR_VERSION: "1.6.1"
    VALIDATE: 1
Janno's avatar
Janno committed
32 33
  artifacts:
    paths:
Ralf Jung's avatar
Ralf Jung committed
34 35
    - build-time.txt
    - build-env.txt