Skip to content
Snippets Groups Projects
.gitlab-ci.yml 1.16 KiB
Newer Older
Ralf Jung's avatar
Ralf Jung committed
image: ralfjung/opam-ci:latest
Ralf Jung's avatar
Ralf Jung committed

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

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

build-coq8.7:
  <<: *template
  variables:
    OPAM_PINS: "coq version 8.7.dev   coq-mathcomp-ssreflect version dev"
  except:
  - triggers

build-coq8.6.1:
Ralf Jung's avatar
Ralf Jung committed
  <<: *template
  variables:
    OPAM_PINS: "coq version 8.6.1   coq-mathcomp-ssreflect version 1.6.1"
    VALIDATE: "1"
Ralf Jung's avatar
Ralf Jung committed
  artifacts:
    paths:
    - build-time.txt
    - build-env.txt
  except:
  - triggers

build-iris.dev:
  <<: *template
  variables:
    OPAM_PINS: "coq version 8.6.1   coq-mathcomp-ssreflect version 1.6.1   coq-iris git https://gitlab.mpi-sws.org/FP/iris-coq.git#master"
  only:
  - triggers