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

.template: &template
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 $OPAM_PINS
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'
Ralf Jung's avatar
Ralf Jung committed
  - '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'
Ralf Jung's avatar
Ralf Jung committed
  cache:
Ralf Jung's avatar
Ralf Jung committed
    key: "$CI_JOB_NAME"
Ralf Jung's avatar
Ralf Jung committed
    paths:
    - opamroot/
  only:
  - master
Ralf Jung's avatar
Ralf Jung committed
  stage: deploy
  script:
  # Send a trigger to the repository doing the work
  - curl --fail -X POST -F "token=$OPAM_UPDATE_SECRET" -F "ref=master" -F "variables[REPO]=$CI_PROJECT_URL.git" -F "variables[REF]=$CI_COMMIT_REF_NAME" -F "variables[SHA]=$CI_COMMIT_SHA" -F "variables[NAME]=$OPAM_PKG" https://gitlab.mpi-sws.org/api/v4/projects/581/trigger/pipeline
Ralf Jung's avatar
Ralf Jung committed
  variables:
Ralf Jung's avatar
Ralf Jung committed
    OPAM_PKG: "coq-iris"
reverse-deps:
  stage: deploy
  script:
  # Send a trigger to reverse dependencies to have them tested
  - curl --fail -X POST -F "token=$IRIS_ATOMIC_SECRET" -F "ref=master" -F "variables[REV]=$CI_COMMIT_SHA" https://gitlab.mpi-sws.org/api/v4/projects/250/trigger/pipeline
Ralf Jung's avatar
Ralf Jung committed
build-coq8.7:
Ralf Jung's avatar
Ralf Jung committed
  <<: *template
  variables:
Ralf Jung's avatar
Ralf Jung committed
    OPAM_PINS: "coq version 8.7.dev   coq-mathcomp-ssreflect version dev"
Ralf Jung's avatar
Ralf Jung committed
build-coq8.6.1:
Ralf Jung's avatar
Ralf Jung committed
  variables:
Ralf Jung's avatar
Ralf Jung committed
    OPAM_PINS: "coq version 8.6.1   coq-mathcomp-ssreflect version 1.6.1"
    VALIDATE: "1"
Ralf Jung's avatar
Ralf Jung committed
    - build-env.txt