Skip to content
Snippets Groups Projects
Commit 4e87d4e7 authored by Ralf Jung's avatar Ralf Jung
Browse files

update CI

parent 46d3f549
No related branches found
No related tags found
No related merge requests found
...@@ -2,8 +2,6 @@ image: ralfjung/opam-ci:latest ...@@ -2,8 +2,6 @@ image: ralfjung/opam-ci:latest
stages: stages:
- build - build
- deploy
- build_more
variables: variables:
CPU_CORES: "9" CPU_CORES: "9"
...@@ -22,6 +20,8 @@ variables: ...@@ -22,6 +20,8 @@ variables:
- 'cat build-log.txt | egrep "[a-zA-Z0-9_/-]+ \((real|user): [0-9]" | tee build-time.txt' - 'cat build-log.txt | egrep "[a-zA-Z0-9_/-]+ \((real|user): [0-9]" | tee build-time.txt'
# maybe generate and upload doc (has to be in this job as we need coq installed) # maybe generate and upload doc (has to be in this job as we need coq installed)
- 'if [[ -n "$DOCDIR" && "$CI_COMMIT_REF_NAME" == master ]]; then build/coqdoc; fi' - 'if [[ -n "$DOCDIR" && "$CI_COMMIT_REF_NAME" == master ]]; then build/coqdoc; fi'
# maybe create opam package
- 'if [[ -n "$OPAM_PKG" && "$CI_COMMIT_REF_NAME" == master ]]; then 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; fi'
cache: cache:
key: "$CI_JOB_NAME" key: "$CI_JOB_NAME"
paths: paths:
...@@ -29,31 +29,27 @@ variables: ...@@ -29,31 +29,27 @@ variables:
only: only:
- master - master
- /^ci/ - /^ci/
opam:
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
variables:
OPAM_PKG: "coq-stdpp"
only:
- master
except: except:
- triggers - triggers
## Build jobs
build-coq.dev:
<<: *template
variables:
OPAM_PINS: "coq version dev"
VALIDATE: "1"
build-coq.8.7.dev: build-coq.8.7.dev:
<<: *template <<: *template
stage: build_more
variables: variables:
OPAM_PINS: "coq version 8.7.dev" OPAM_PINS: "coq version 8.7.dev"
except:
- triggers
build-coq.8.7.1: build-coq.8.7.1:
<<: *template <<: *template
variables: variables:
OPAM_PINS: "coq version 8.7.1" OPAM_PINS: "coq version 8.7.1"
OPAM_PKG: "coq-stdpp"
DOCDIR: "coqdoc@center.mpi-sws.org:/stdpp" DOCDIR: "coqdoc@center.mpi-sws.org:/stdpp"
tags: tags:
- fp-timing - fp-timing
...@@ -61,28 +57,18 @@ build-coq.8.7.1: ...@@ -61,28 +57,18 @@ build-coq.8.7.1:
paths: paths:
- build-time.txt - build-time.txt
- build-env.txt - build-env.txt
except:
- triggers
build-coq.8.7.0: build-coq.8.7.0:
<<: *template <<: *template
stage: build_more
variables: variables:
OPAM_PINS: "coq version 8.7.0" OPAM_PINS: "coq version 8.7.0"
except:
- triggers
build-coq.8.6.1: build-coq.8.6.1:
<<: *template <<: *template
variables: variables:
OPAM_PINS: "coq version 8.6.1" OPAM_PINS: "coq version 8.6.1"
except:
- triggers
build-coq.8.6.0: build-coq.8.6.0:
<<: *template <<: *template
stage: build_more
variables: variables:
OPAM_PINS: "coq version 8.6" OPAM_PINS: "coq version 8.6"
except:
- triggers
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment