aboutsummaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
diff options
context:
space:
mode:
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r--.gitlab-ci.yml22
1 files changed, 22 insertions, 0 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 6c70f50..b8c9c8f 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -70,6 +70,28 @@ coq-8.8:
coq-dev:
extends: .opam-build
+# set var OPAM_SWITCH (if need be) and COQ_VERSION when using
+.make-build:
+ stage: build
+ image: docker:latest
+ services:
+ - docker:dind
+ variables:
+ # This image will be built locally only (not pushed)
+ IMAGE: "mathcomp-dev:make_coq-${COQ_VERSION}"
+ OPAM_SWITCH: "edge"
+ before_script:
+ script:
+ - docker build -f Dockerfile.make --pull --build-arg=coq_image="coqorg/coq:${COQ_VERSION}" --build-arg=compiler="${OPAM_SWITCH}" -t "${IMAGE}" .
+ except:
+ - tags
+ - merge_requests
+
+make-coq-latest:
+ extends: .make-build
+ variables:
+ COQ_VERSION: "latest"
+
# set CONTRIB_URL, script, COQ_VERSION, CONTRIB_VERSION when using
.ci:
stage: test