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

fix build cache key; sync build system

parent b5199648
No related branches found
No related tags found
No related merge requests found
...@@ -2,7 +2,7 @@ image: ralfjung/opam-ci:latest ...@@ -2,7 +2,7 @@ image: ralfjung/opam-ci:latest
stages: stages:
- build - build
- opam - deploy
variables: variables:
CPU_CORES: "9" CPU_CORES: "9"
...@@ -21,7 +21,7 @@ variables: ...@@ -21,7 +21,7 @@ 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'
- 'if test -n "$VALIDATE" && (( RANDOM % 10 == 0 )); then make validate; fi' - 'if test -n "$VALIDATE" && (( RANDOM % 10 == 0 )); then make validate; fi'
cache: cache:
key: "coq.$COQ_VERSION" key: "$CI_JOB_NAME"
paths: paths:
- opamroot/ - opamroot/
only: only:
...@@ -29,10 +29,10 @@ variables: ...@@ -29,10 +29,10 @@ variables:
- /^ci/ - /^ci/
opam: opam:
stage: opam stage: deploy
script: script:
# Send a trigger to the repository doing the work # 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/v3/projects/581/trigger/builds - 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: variables:
OPAM_PKG: "coq-stdpp" OPAM_PKG: "coq-stdpp"
only: only:
......
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