Skip to content
Snippets Groups Projects
Commit 04dc80da authored by Marco Maida's avatar Marco Maida Committed by Björn Brandenburg
Browse files

CI: factor out common code

parent 91005deb
No related branches found
No related tags found
1 merge request!217Added refinements
...@@ -39,6 +39,19 @@ stages: ...@@ -39,6 +39,19 @@ stages:
image: mathcomp/mathcomp-dev:${CI_JOB_NAME} image: mathcomp/mathcomp-dev:${CI_JOB_NAME}
extends: .build-common extends: .build-common
.install-dependencies:
script:
- opam update
- opam install -y -v -j ${NJOBS} coq-mathcomp-zify
.make-html:
script:
- make html -j ${NJOBS}
- mv html with-proofs
- make gallinahtml -j ${NJOBS}
- mv html without-proofs
- make htmlpretty -j ${NJOBS}
- mv html pretty
###################### The Jobs ###################### ###################### The Jobs ######################
...@@ -58,15 +71,10 @@ compile-and-doc: ...@@ -58,15 +71,10 @@ compile-and-doc:
- .only_in_wip_branches - .only_in_wip_branches
- .preferred-stable-version - .preferred-stable-version
script: script:
- opam update; opam install -y -v -j ${NJOBS} coq-mathcomp-zify - !reference [.install-dependencies, script]
- ./create_makefile.sh --without-classic - ./create_makefile.sh --without-classic
- make -j ${NJOBS} - make -j ${NJOBS}
- make html -j ${NJOBS} - !reference [.make-html, script]
- mv html with-proofs
- make gallinahtml -j ${NJOBS}
- mv html without-proofs
- make htmlpretty -j ${NJOBS}
- mv html pretty
artifacts: artifacts:
name: "prosa-spec-$CI_COMMIT_REF_NAME" name: "prosa-spec-$CI_COMMIT_REF_NAME"
paths: paths:
...@@ -81,15 +89,9 @@ compile-and-doc-and-validate: ...@@ -81,15 +89,9 @@ compile-and-doc-and-validate:
- .not_in_wip_branches - .not_in_wip_branches
- .preferred-stable-version - .preferred-stable-version
script: script:
- opam update; opam install -y -v -j ${NJOBS} coq-mathcomp-zify - !reference [.install-dependencies, script]
- ./create_makefile.sh --without-classic - ./create_makefile.sh --without-classic
- make -j ${NJOBS} - !reference [.make-html, script]
- make html -j ${NJOBS}
- mv html with-proofs
- make gallinahtml -j ${NJOBS}
- mv html without-proofs
- make htmlpretty -j ${NJOBS}
- mv html pretty
- make validate 2>&1 | tee validation-results.txt - make validate 2>&1 | tee validation-results.txt
- scripts/check-validation-output.sh validation-results.txt - scripts/check-validation-output.sh validation-results.txt
artifacts: artifacts:
...@@ -106,15 +108,10 @@ classic-compile-and-doc-and-validate: ...@@ -106,15 +108,10 @@ classic-compile-and-doc-and-validate:
- .preferred-stable-version - .preferred-stable-version
- .not_in_wip_branches - .not_in_wip_branches
script: script:
- opam update; opam install -y -v -j ${NJOBS} coq-mathcomp-zify - !reference [.install-dependencies, script]
- ./create_makefile.sh --only-classic - ./create_makefile.sh --only-classic
- make -j ${NJOBS} - make -j ${NJOBS}
- make html -j ${NJOBS} - !reference [.make-html, script]
- mv html with-proofs
- make gallinahtml -j ${NJOBS}
- mv html without-proofs
- make htmlpretty -j ${NJOBS}
- mv html pretty
- make validate - make validate
artifacts: artifacts:
name: "prosa-classic-spec-$CI_COMMIT_REF_NAME" name: "prosa-classic-spec-$CI_COMMIT_REF_NAME"
...@@ -161,7 +158,7 @@ proof-state: ...@@ -161,7 +158,7 @@ proof-state:
image: bbbrandenburg/alectryon-ci:1.14.0-coq-8.15.0 image: bbbrandenburg/alectryon-ci:1.14.0-coq-8.15.0
script: script:
- eval $(opam env "--switch=${COMPILER_EDGE}" --set-switch) - eval $(opam env "--switch=${COMPILER_EDGE}" --set-switch)
- opam update; opam install -y -v -j ${NJOBS} coq-mathcomp-zify - !reference [.install-dependencies, script]
- ./create_makefile.sh --without-classic - ./create_makefile.sh --without-classic
- make -j ${NJOBS} alectryon - make -j ${NJOBS} alectryon
artifacts: artifacts:
......
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