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

CI: use template; test 8.5.3, 8.6 and 8.6.1

parent 24cc2e47
No related branches found
No related tags found
No related merge requests found
...@@ -3,44 +3,42 @@ image: ralfjung/opam-ci:latest ...@@ -3,44 +3,42 @@ image: ralfjung/opam-ci:latest
variables: variables:
CPU_CORES: "9" CPU_CORES: "9"
stdpp-coq8.5: .template: &template
tags: tags:
- fp-timing - fp-timing
script: script:
# prepare # prepare
- . build/opam-ci.sh coq 8.5.3 - . build/opam-ci.sh coq "$COQ_VERSION"
# build
- 'time make -j$CPU_CORES'
cache:
key: "coq8.5"
paths:
- opamroot/
only:
- master
- ci
- timing
stdpp-coq8.6:
tags:
- fp-timing
script:
# prepare
- . build/opam-ci.sh coq 8.6
- env | egrep '^(CI_BUILD_REF|CI_RUNNER)' > build-env.txt - env | egrep '^(CI_BUILD_REF|CI_RUNNER)' > build-env.txt
# build # build
- 'time make -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_/-]+ \(user: [0-9]" | tee build-time.txt' - 'cat build-log.txt | egrep "[a-zA-Z0-9_/-]+ \(user: [0-9]" | tee build-time.txt'
- 'if (( RANDOM % 10 == 0 )); then make validate; fi' - 'if test -n "$VALIDATE" && (( RANDOM % 10 == 0 )); then make validate; fi'
cache: cache:
key: "coq8.6" key: "coq$COQ_VERSION"
paths: paths:
- opamroot/ - opamroot/
only: only:
- master - master
- ci - /^ci/
- timing
stdpp-coq8.6.1:
<<: *template
variables:
COQ_VERSION: "8.6.1"
VALIDATE: 1
artifacts: artifacts:
paths: paths:
- build-time.txt - build-time.txt
- build-env.txt - build-env.txt
stdpp-coq8.6:
<<: *template
variables:
COQ_VERSION: "8.6"
stdpp-coq8.5.3:
<<: *template
variables:
COQ_VERSION: "8.5.3"
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