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

more parallel CI

parent 9a35c9a5
No related branches found
No related tags found
No related merge requests found
...@@ -2,8 +2,7 @@ image: ralfjung/opam-ci:latest ...@@ -2,8 +2,7 @@ image: ralfjung/opam-ci:latest
stages: stages:
- build - build
- deploy - reverse-deps
- build_more
variables: variables:
CPU_CORES: "9" CPU_CORES: "9"
...@@ -20,7 +19,10 @@ variables: ...@@ -20,7 +19,10 @@ variables:
- 'time make -k -j$CPU_CORES TIMED=y 2>&1 | tee build-log.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' - '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' - 'cat build-log.txt | egrep "[a-zA-Z0-9_/-]+ \((real|user): [0-9]" | tee build-time.txt'
- 'if test -n "$VALIDATE"; then make validate; fi' # maybe validate
- 'if [[ -n "$VALIDATE" ]]; then make validate; 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:
...@@ -28,21 +30,11 @@ variables: ...@@ -28,21 +30,11 @@ 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-iris"
only:
- master
except: except:
- triggers - triggers
reverse-deps: reverse-deps:
stage: deploy stage: reverse-deps
script: script:
# Send a trigger to reverse dependencies to have them tested # Send a trigger to reverse dependencies to have them tested
- curl --fail -X POST -F "token=$IRIS_EXAMPLES_SECRET" -F "ref=master" -F "variables[IRIS_REV]=$CI_COMMIT_SHA" https://gitlab.mpi-sws.org/api/v4/projects/615/trigger/pipeline - curl --fail -X POST -F "token=$IRIS_EXAMPLES_SECRET" -F "ref=master" -F "variables[IRIS_REV]=$CI_COMMIT_SHA" https://gitlab.mpi-sws.org/api/v4/projects/615/trigger/pipeline
...@@ -51,39 +43,32 @@ reverse-deps: ...@@ -51,39 +43,32 @@ reverse-deps:
except: except:
- triggers - triggers
## Build jobs
build-coq.dev: build-coq.dev:
<<: *template <<: *template
stage: build_more
variables: variables:
OPAM_PINS: "coq version dev coq-mathcomp-ssreflect version dev" OPAM_PINS: "coq version dev coq-mathcomp-ssreflect version dev"
VALIDATE: "1" VALIDATE: "1"
except:
- triggers
build-coq.8.7.1: build-coq.8.7.1:
<<: *template <<: *template
variables: variables:
OPAM_PINS: "coq version 8.7.1 coq-mathcomp-ssreflect version 1.6.4" OPAM_PINS: "coq version 8.7.1 coq-mathcomp-ssreflect version 1.6.4"
OPAM_PKG: "coq-iris"
tags: tags:
- fp-timing - fp-timing
artifacts: artifacts:
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 coq-mathcomp-ssreflect version 1.6.4" OPAM_PINS: "coq version 8.7.0 coq-mathcomp-ssreflect version 1.6.4"
except:
- triggers
build-coq.8.6.1: build-coq.8.6.1:
<<: *template <<: *template
variables: variables:
OPAM_PINS: "coq version 8.6.1 coq-mathcomp-ssreflect version 1.6.4" OPAM_PINS: "coq version 8.6.1 coq-mathcomp-ssreflect version 1.6.4"
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