Skip to content
Snippets Groups Projects
.gitlab-ci.yml 667 B
Newer Older
Ralf Jung's avatar
Ralf Jung committed
image: ralfjung/opam-ci:latest
Ralf Jung's avatar
Ralf Jung committed
variables:
  CPU_CORES: "9"

Ralf Jung's avatar
Ralf Jung committed
iris-coq8.6:
Ralf Jung's avatar
Ralf Jung committed
  tags:
Ralf Jung's avatar
Ralf Jung committed
  - fp-timing
Ralf Jung's avatar
Ralf Jung committed
  script:
  # prepare
Ralf Jung's avatar
Ralf Jung committed
  - . build/opam-ci.sh coq 8.6.1 coq-mathcomp-ssreflect 1.6.1
Ralf Jung's avatar
Ralf Jung committed
  - env | egrep '^(CI_BUILD_REF|CI_RUNNER)' > build-env.txt
Ralf Jung's avatar
Ralf Jung committed
  # build
  - 'time make -k -j$CPU_CORES TIMED=y 2>&1 | tee build-log.txt'
Ralf Jung's avatar
Ralf Jung committed
  - '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'
  - 'if (( RANDOM % 10 == 0 )); then make validate; fi'
Ralf Jung's avatar
Ralf Jung committed
  cache:
    key: "coq8.6"
    paths:
    - opamroot/
  only:
  - master
Ralf Jung's avatar
Ralf Jung committed
    - build-env.txt