Skip to content
Snippets Groups Projects
.gitlab-ci.yml 921 B
Newer Older
image: ralfjung/opam-ci:latest

Ralf Jung's avatar
Ralf Jung committed
variables:
  CPU_CORES: "9"

.template: &template
Ralf Jung's avatar
Ralf Jung committed
  - fp-timing
  script:
  # prepare
  - . build/opam-ci.sh coq "$COQ_VERSION"
Ralf Jung's avatar
Ralf Jung committed
  - env | egrep '^(CI_BUILD_REF|CI_RUNNER)' > build-env.txt
  - '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'
Ralf Jung's avatar
Ralf Jung committed
  - 'cat build-log.txt | egrep "[a-zA-Z0-9_/-]+ \((real|user): [0-9]" | tee build-time.txt'
  - 'if test -n "$VALIDATE" && (( RANDOM % 10 == 0 )); then make validate; fi'
    key: "coq$COQ_VERSION"
    paths:
    - opamroot/
  only:
  - master

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

stdpp-coq8.6.1:
  <<: *template
  variables:
    COQ_VERSION: "8.6.1"
    VALIDATE: 1
  artifacts:
    paths:
    - build-time.txt
Ralf Jung's avatar
Ralf Jung committed
    - build-env.txt

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