Debian Codegraph @

.gitlab-ci.yml

raw symbols SCIP
1 image: $BASE_IMAGE
2
3 include:
4 - local: '/dev/ci/gitlab-modes/protected-mode.yml'
5 rules:
6 - if: $CI_COMMIT_BRANCH == "master"
7 - if: $CI_COMMIT_BRANCH =~ /^v.*\..*$/
8
9 - local: "/dev/ci/gitlab-modes/normal-mode.yml"
10 rules:
11 - if: $CI_COMMIT_BRANCH != "master" && $CI_COMMIT_BRANCH !~ /^v.*\..*$/
12
13 - local: "/dev/ci/gitlab-modes/tagged-runners.yml"
14 rules:
15 - if: $TAGGED_RUNNERS
16
17 - local: "/dev/ci/gitlab-modes/untagged-runners.yml"
18 rules:
19 - if: $TAGGED_RUNNERS == null
20
21 - local: '/dev/bench/gitlab-bench.yml'
22
23 stages:
24 - docker
25 - build-0
26 - build-1
27 - build-2
28 - build-3+
29 - deploy
30 - stats
31
32 # We set "needs" to contain all transitive dependencies. We include the
33 # transitive dependencies as otherwise we don't get their artifacts
34 # (eg if color had just needs: bignums it wouldn't get the artifact containing coq)
35
36 # some default values
37 variables:
38 # Format: image_name-V$DATE-$hash
39 # $DATE is so we can tell what's what in the image list
40 # The $hash is the first 10 characters of the md5 of the Dockerfile. e.g.
41 # echo $(md5sum dev/ci/docker/old_ubuntu_lts/Dockerfile | head -c 10)
42 # echo $(md5sum dev/ci/docker/edge_ubuntu/Dockerfile | head -c 10)
43 BASE_CACHEKEY: "old_ubuntu_lts-v9.2-V2025-11-14-69405188ee"
44 EDGE_CACHEKEY: "edge_ubuntu-v9.2-V2025-12-02-e6edb0cc32"
45 BASE_IMAGE: "$CI_REGISTRY_IMAGE:$BASE_CACHEKEY"
46 EDGE_IMAGE: "$CI_REGISTRY_IMAGE:$EDGE_CACHEKEY"
47
48 # Used to select special compiler switches such as flambda, 32bits, etc...
49 OPAM_VARIANT: ""
50 GIT_DEPTH: "10"
51
52 before_script:
53 - dev/ci/gitlab-section.sh start before_script before_script
54 - cat /proc/{cpu,mem}info || true
55 - ulimit -s
56 - ls -a # figure out if artifacts are around
57 - printenv -0 | sort -z | tr '\0' '\n'
58 - opam switch set -y "${COMPILER}${OPAM_VARIANT}"
59 - eval $(opam env)
60 - opam list
61 - opam config list
62 - dune printenv --root .
63 - dev/tools/check-cachekey.sh
64 - dev/tools/list-potential-artifacts.sh > downloaded_artifacts.txt
65 - if [ -d saved_build_ci ]; then mv saved_build_ci _build_ci; fi
66 - dev/ci/gitlab-section.sh end before_script
67
68 # Regular "release" build of Rocq, with final installed layout
69 .build-template:
70 stage: build-0
71 interruptible: true
72 extends: .auto-use-tags
73 variables:
74 ROCQIDE: "opt"
75 artifacts:
76 name: "$CI_JOB_NAME"
77 paths:
78 - _install_ci
79 # All those are for the test-suite jobs, to be discarded soon
80 - config/Makefile
81 - config/coq_config.py
82 - config/coq_config.ml
83 - config/coq_byte_config.ml
84 - config/dune.c_flags
85 expire_in: 1 week
86 script:
87 - cp dev/ci/dune-workspace.ci dune-workspace
88
89 - PKGS=rocq-runtime,coq-core,rocq-core,coqide-server,rocq-devtools
90 - if [ "$ROCQIDE" != "no" ]; then PKGS=${PKGS},rocqide; fi
91 - dev/ci/gitlab-section.sh start coq.clean coq.clean
92 - make clean # ensure that `make clean` works on a fresh clone
93 - dev/ci/gitlab-section.sh end coq.clean
94
95 - dev/ci/gitlab-section.sh start coq.config coq.config
96 - ./configure -relocatable $COQ_EXTRA_CONF
97 - dev/ci/gitlab-section.sh end coq.config
98
99 - dev/ci/gitlab-section.sh start coq.build coq.build
100 - make dunestrap
101 - dune build -p $PKGS
102 - dev/ci/gitlab-section.sh end coq.build
103
104 - dev/ci/gitlab-section.sh start coq.install coq.install
105 - dune install --prefix="$(pwd)/_install_ci" $(sed -e 's/,/ /g' <<< ${PKGS})
106 - dev/ci/gitlab-section.sh end coq.install
107
108 # Developer build, with build layout. Faster and useful for those
109 # jobs needing _build
110 .build-template:base:dev:
111 stage: build-0
112 interruptible: true
113 extends: .auto-use-tags
114 script:
115 - cp dev/ci/dune-workspace.ci dune-workspace
116 - make $DUNE_TARGET
117 - tar cfj _build.tar.bz2 _build
118 variables:
119 DUNE_TARGET: "world rocqide"
120 artifacts:
121 name: "$CI_JOB_NAME"
122 when: always
123 paths:
124 - _build/log
125 - _build.tar.bz2
126 - theories/Corelib/dune
127 - theories/Ltac2/dune
128 expire_in: 1 day
129
130 .doc-template:
131 stage: build-1
132 interruptible: true
133 extends: .auto-use-tags
134 needs:
135 - build:base:dev
136 script:
137 - ulimit -S -s 16384
138 - tar xfj _build.tar.bz2
139 - make "$DUNE_TARGET"
140 artifacts:
141 when: always
142 name: "$CI_JOB_NAME"
143 expire_in: 2 months
144
145 # The used Rocq must be set explicitly for each job with "needs:".
146 # We add a spurious dependency `not-a-real-job` that must be
147 # overridden otherwise the CI will fail (to help debugging missing needs).
148
149 # set "needs" when using
150 .test-suite-template:
151 stage: build-1
152 interruptible: true
153 extends: .auto-use-tags
154 needs:
155 - not-a-real-job
156 script:
157 - cd test-suite
158 - make clean
159 - export OCAMLPATH=$(readlink -f ../_install_ci/lib/):"$OCAMLPATH"
160 - COQEXTRAFLAGS="${COQEXTRAFLAGS}" make -j "$NJOBS" TIMED=1 all ROCQ_EXE=$(pwd)/../_install_ci/bin/rocq
161 artifacts:
162 name: "$CI_JOB_NAME.logs"
163 when: on_failure
164 paths:
165 - test-suite/logs
166 expire_in: 1 week
167
168 # set "needs" when using
169 .validate-template:
170 stage: build-2
171 interruptible: true
172 extends: .auto-use-tags
173 needs:
174 - not-a-real-job
175 script:
176 - for target in $CI_TARGETS; do dev/ci/ci-wrapper.sh "$target"; done
177 - cd _install_ci
178 - find lib/coq/ -name '*.vo' -fprint0 vofiles
179 - xargs -0 --arg-file=vofiles bin/coqchk -o -m -coqlib lib/coq/ > ../coqchk.log 2>&1 || touch coqchk.failed
180 - tail -n 1000 ../coqchk.log # the log is too big for gitlab so pipe to a file and display the tail
181 - "[ ! -f coqchk.failed ]" # needs quoting for yml syntax reasons
182 artifacts:
183 name: "$CI_JOB_NAME.logs"
184 when: always
185 paths:
186 - coqchk.log
187 expire_in: 1 week
188
189 # This template defaults to "needs: build:base"
190 # Remember to include it as a transitive dependency if you want additional "needs:"
191 .ci-template:
192 stage: build-1
193 interruptible: true
194 extends: .auto-use-tags
195 script:
196 - ulimit -S -s 16384 # For flambda + native
197 # set CI_TARGETS from job name if not already provided, then print
198 - echo CI_TARGETS = ${CI_TARGETS:=${CI_JOB_NAME#*:ci-}}
199 - for target in $CI_TARGETS; do dev/ci/ci-wrapper.sh "$target"; done
200 - touch ci-success
201 after_script:
202 - if { [ "$SAVE_BUILD_CI" ] || [ "$CI_COMMIT_REF_NAME" = master ] || ! [ -e ci-success ]; } && [ -d _build_ci ]; then mv _build_ci saved_build_ci; fi
203 - dev/tools/list-potential-artifacts.sh > available_artifacts.txt
204 - dev/tools/cleanup-artifacts.sh downloaded_artifacts.txt available_artifacts.txt
205 artifacts:
206 name: "$CI_JOB_NAME"
207 paths:
208 - _install_ci
209 - saved_build_ci
210 exclude: # reduce artifact size
211 - saved_build_ci/**/.git # exclude .git directory itself as well
212 - saved_build_ci/**/.git/**/*
213 when: always
214 expire_in: 1 week
215 needs:
216 - build:base
217 only: &full-ci
218 variables:
219 - $FULL_CI == "true"
220
221 .ci-template-flambda:
222 extends: .ci-template
223 image: $EDGE_IMAGE
224 needs:
225 - build:edge+flambda
226 variables:
227 OPAM_VARIANT: "+flambda"
228
229 .deploy-template:
230 stage: deploy
231 extends: .auto-use-tags
232 before_script:
233 - which ssh-agent || ( apt-get update -y && apt-get install openssh-client -y )
234 - eval $(ssh-agent -s)
235 - mkdir -p ~/.ssh
236 - chmod 700 ~/.ssh
237 - ssh-keyscan -t rsa github.com >> ~/.ssh/known_hosts
238 - git config --global user.name "coqbot"
239 - git config --global user.email "[email protected]"
240
241 .pkg:opam-template:
242 stage: build-0
243 image: $EDGE_IMAGE
244 interruptible: true
245 extends: .auto-use-tags
246 # OPAM will build out-of-tree so no point in importing artifacts
247 script:
248 - if [ "$ROCQ_CI_NATIVE" = true ]; then opam install -y rocq-native; fi
249 - opam pin add --kind=path rocq-runtime.dev .
250 - opam pin add --kind=path rocq-core.dev .
251 - if [ "$ROCQ_CI_NATIVE" = true ]; then echo "Definition f x := x + x." > test_native.v; fi
252 - if [ "$ROCQ_CI_NATIVE" = true ]; then rocq c test_native.v; fi
253 - if [ "$ROCQ_CI_NATIVE" = true ]; then test -f .coq-native/Ntest_native.cmxs; fi
254 - opam pin add --kind=path coqide-server.dev .
255 - opam pin add --kind=path rocqide.dev .
256 - opam pin add --kind=path rocq-devtools .
257 - opam pin add --kind=path rocq-test-suite.dev . -v
258 - if command -v coqc; then exit 1; fi # coq-core didn't get autoinstalled
259 - opam pin add --kind=path coq-core.dev .
260 after_script:
261 - eval $(opam env)
262 - du -ha "$(coqc -where)" > files.listing
263 artifacts:
264 name: "$CI_JOB_NAME"
265 paths:
266 - files.listing
267 when: always
268 expire_in: 1 week
269 variables:
270 OPAM_VARIANT: "+flambda"
271 only: *full-ci
272
273 .nix-template:
274 stage: build-0
275 needs: []
276 interruptible: true
277 image: nixos/nix:latest
278 extends: .auto-use-tags
279 variables:
280 GIT_STRATEGY: none # Required because we don't have git
281 USER: root # Variable required by Cachix
282 before_script:
283 - cat /proc/{cpu,mem}info || true
284 # Use current worktree as tmpdir to allow exporting artifacts in case of failure
285 - export TMPDIR=$PWD
286 # Install Cachix
287 - nix-env -iA nixpkgs.cachix
288 - cachix use coq
289 artifacts:
290 name: "$CI_JOB_NAME.logs"
291 when: on_failure
292 paths:
293 - nix-build-coq.drv-0/*/test-suite/logs
294 expire_in: 1 week
295
296 ##############################################################################
297 ########################## End of templates ##################################
298 ##############################################################################
299
300 docker-boot:
301 stage: docker
302 image: docker:stable
303 services:
304 - docker:dind
305 before_script: []
306 script:
307 - dev/tools/check-cachekey.sh
308 - docker login -u gitlab-ci-token -p "$CI_JOB_TOKEN" "$CI_REGISTRY"
309 - cd dev/ci/docker/old_ubuntu_lts
310 - if docker pull "$BASE_IMAGE"; then echo "Base image prebuilt!"; else docker build -t "$BASE_IMAGE" .; docker push "$BASE_IMAGE"; fi
311 - cd ../edge_ubuntu
312 - if docker pull "$EDGE_IMAGE"; then echo "Edge image prebuilt!"; else docker build -t "$EDGE_IMAGE" .; docker push "$EDGE_IMAGE"; fi
313 except:
314 variables:
315 - $SKIP_DOCKER == "true"
316 extends: .auto-use-docker-tags
317 timeout: 2h
318
319 build:base:
320 extends: .build-template
321 variables:
322 COQ_EXTRA_CONF: "-native-compiler yes"
323 only: *full-ci
324
325 # no rocqide for 32bit: libgtk installation problems
326 build:base+32bit:
327 extends: .build-template
328 variables:
329 OPAM_VARIANT: "+32bit"
330 COQ_EXTRA_CONF: "-native-compiler yes"
331 ROCQIDE: "no"
332 only: *full-ci
333
334 build:edge+flambda:
335 extends: .build-template
336 image: $EDGE_IMAGE
337 variables:
338 OPAM_VARIANT: "+flambda"
339 COQ_EXTRA_CONF: "-native-compiler yes"
340 only: *full-ci
341
342 build:base:dev:
343 extends: .build-template:base:dev
344
345 # Build using native dune rules
346 build:base:dev:dune:
347 stage: build-0
348 image: $EDGE_IMAGE
349 variables:
350 OPAM_VARIANT: "+flambda"
351 interruptible: true
352 extends: .auto-use-tags
353 script:
354 - cp theories/Corelib/dune.disabled theories/Corelib/dune
355 - cp theories/Ltac2/dune.disabled theories/Ltac2/dune
356 - dune build -p rocq-runtime,coq-core,rocq-core,coqide-server
357 - ls _build/install/default/lib/coq/theories/Init/Prelude.vo
358 - ls _build/install/default/lib/coq/user-contrib/Ltac2/Ltac2.vo
359 only: *full-ci
360
361 build:base+async:
362 extends: .build-template
363 variables:
364 COQ_EXTRA_CONF: "-native-compiler yes"
365 COQ_DUNE_EXTRA_OPT: "-async"
366 after_script:
367 - dmesg > dmesg.txt
368 allow_failure: true # See https://github.com/rocq-prover/rocq/issues/9658
369 only:
370 variables:
371 - $UNRELIABLE =~ /enabled/ && $FULL_CI == "true"
372 artifacts:
373 when: always
374 paths:
375 - _install_ci
376 # All those are for the test-suite jobs, to be discarded once we have dune for the test-suite
377 - config/Makefile
378 - config/coq_config.py
379 - config/coq_config.ml
380 - config/coq_byte_config.ml
381 - config/dune.c_flags
382 - dmesg.txt
383 timeout: 1h 30min
384
385 lint:
386 stage: build-0
387 image: $EDGE_IMAGE
388 script: dev/lint-repository.sh
389 extends: .auto-use-tags
390 variables:
391 GIT_DEPTH: "" # we need an unknown amount of history for per-commit linting
392 OPAM_VARIANT: "+flambda"
393
394 # pkg:opam:
395 # extends: .pkg:opam-template
396
397 pkg:opam:native:
398 extends: .pkg:opam-template
399 variables:
400 ROCQ_CI_NATIVE: "true"
401
402 # broken, see eg https://gitlab.com/coq/coq/-/jobs/1754045983
403 # pkg:nix:deploy:
404 # extends: .nix-template
405 # environment:
406 # name: cachix
407 # url: https://coq.cachix.org
408 # script:
409 # - nix-build https://coq.inria.fr/nix/toolbox --argstr job coq --arg override "{coq = coq:$CI_COMMIT_SHA;}" -K | cachix push coq
410 # only:
411 # refs:
412 # - master
413 # - /^v.*\..*$/
414 # variables:
415 # - $CACHIX_AUTH_TOKEN
416
417 # pkg:nix:deploy:channel:
418 # extends: .deploy-template
419 # environment:
420 # name: cachix
421 # url: https://coq.cachix.org
422 # only:
423 # refs: # Repeat conditions from pkg:nix:deploy
424 # - master
425 # - /^v.*\..*$/
426 # variables:
427 # - $CACHIX_AUTH_TOKEN && $CACHIX_DEPLOYMENT_KEY
428 # # if the $CACHIX_AUTH_TOKEN variable isn't set, the job it depends on doesn't exist
429 # needs:
430 # - pkg:nix:deploy
431 # script:
432 # - echo "$CACHIX_DEPLOYMENT_KEY" | tr -d '\r' | ssh-add - > /dev/null
433 # # Remove all pr branches because they could be missing when we run git fetch --unshallow
434 # - git branch --list 'pr-*' | xargs -r git branch -D
435 # - git fetch --unshallow
436 # - git branch -v
437 # - git push [email protected]:rocq-prover/coq-on-cachix "${CI_COMMIT_SHA}":"refs/heads/${CI_COMMIT_REF_NAME}"
438
439 pkg:nix:
440 extends: .nix-template
441 script:
442 - nix-build "$CI_PROJECT_URL/-/archive/$CI_COMMIT_SHA.tar.gz" -K
443 only: *full-ci
444
445 doc:refman:
446 extends: .doc-template
447 variables:
448 DUNE_TARGET: refman-html
449 artifacts:
450 paths:
451 - _build/log
452 - _build/default/doc/refman-html
453
454 doc:refman-pdf:
455 extends: .doc-template
456 variables:
457 DUNE_TARGET: refman-pdf
458 artifacts:
459 paths:
460 - _build/log
461 - _build/default/doc/refman-pdf
462
463 doc:init:
464 extends: .doc-template
465 variables:
466 DUNE_TARGET: corelib-html
467 artifacts:
468 paths:
469 - _build/log
470 - _build/default/doc/corelib/html
471
472 doc:refman:deploy:
473 extends: .deploy-template
474 environment:
475 name: deployment
476 url: https://coq.github.io/
477 only:
478 variables:
479 - $DOCUMENTATION_DEPLOY_KEY
480 needs:
481 - doc:ml-api:odoc
482 - doc:ci-refman
483 - doc:init
484 - library:ci-stdlib_doc
485 script:
486 - echo "$DOCUMENTATION_DEPLOY_KEY" | tr -d '\r' | ssh-add - > /dev/null
487 - git clone [email protected]:rocq-prover/doc.git _deploy --depth 1
488 - rm -rf _deploy/$CI_COMMIT_REF_NAME/api
489 - rm -rf _deploy/$CI_COMMIT_REF_NAME/refman
490 - rm -rf _deploy/$CI_COMMIT_REF_NAME/corelib
491 - if [ $CI_COMMIT_REF_NAME = "master" ] ; then rm -rf _deploy/$CI_COMMIT_REF_NAME/refman-stdlib ; fi
492 - if [ $CI_COMMIT_REF_NAME = "master" ] ; then rm -rf _deploy/$CI_COMMIT_REF_NAME/stdlib ; fi
493 - mkdir -p _deploy/$CI_COMMIT_REF_NAME
494 - cp -rv _build/default/_doc/_html _deploy/$CI_COMMIT_REF_NAME/api
495 - cp -rv _build/default/doc/refman-html _deploy/$CI_COMMIT_REF_NAME/refman
496 - cp -rv _build/default/doc/corelib/html _deploy/$CI_COMMIT_REF_NAME/corelib
497 - if [ $CI_COMMIT_REF_NAME = "master" ] ; then cp -rv saved_build_ci/stdlib/_build/default/doc/refman-html _deploy/$CI_COMMIT_REF_NAME/refman-stdlib ; fi
498 - if [ $CI_COMMIT_REF_NAME = "master" ] ; then cp -rv saved_build_ci/stdlib/_build/default/doc/stdlib/html _deploy/$CI_COMMIT_REF_NAME/stdlib ; fi
499 - cd _deploy/$CI_COMMIT_REF_NAME/
500 - git add api refman corelib
501 - if [ $CI_COMMIT_REF_NAME = "master" ] ; then git add refman-stdlib stdlib ; fi
502 - git commit -m "Documentation of branch “$CI_COMMIT_REF_NAME” at $CI_COMMIT_SHORT_SHA"
503 - git push # TODO: rebase and retry on failure
504
505 doc:ml-api:odoc:
506 extends: .doc-template
507 variables:
508 DUNE_TARGET: apidoc
509 artifacts:
510 paths:
511 - _build/log
512 - _build/default/_doc/
513
514 test-suite:base:
515 extends: .test-suite-template
516 needs:
517 - build:base
518 only: *full-ci
519
520 test-suite:base+32bit:
521 extends: .test-suite-template
522 needs:
523 - build:base+32bit
524 variables:
525 OPAM_VARIANT: "+32bit"
526 only: *full-ci
527
528 test-suite:edge+flambda:
529 extends: .test-suite-template
530 image: $EDGE_IMAGE
531 needs:
532 - build:edge+flambda
533 variables:
534 OPAM_VARIANT: "+flambda"
535 only: *full-ci
536
537 test-suite:base:dev:
538 stage: build-1
539 interruptible: true
540 extends: .auto-use-tags
541 needs:
542 - build:base:dev
543 script:
544 - tar xfj _build.tar.bz2
545 - make test-suite
546 artifacts:
547 name: "$CI_JOB_NAME.logs"
548 when: on_failure
549 paths:
550 - _build/default/test-suite/logs
551 expire_in: 1 week
552
553 .test-suite:ocaml+beta+dune-template:
554 stage: build-1 # even though it has no deps we put it with the other test suite jobs
555 needs:
556 - docker-boot
557 interruptible: true
558 script:
559 - opam switch create $OCAMLVER --empty
560 - eval $(opam env)
561 - opam repo add ocaml-beta https://github.com/ocaml/ocaml-beta-repository.git
562 - opam update
563 - opam install ocaml-variants=$OCAMLVER
564 - opam install dune zarith
565 - eval $(opam env)
566 - export COQ_UNIT_TEST=noop
567 - make test-suite
568 artifacts:
569 name: "$CI_JOB_NAME.logs"
570 when: always
571 paths:
572 - _build/log
573 - _build/default/test-suite/logs
574 expire_in: 1 week
575 allow_failure: true
576
577 test-suite:base+async:
578 extends: .test-suite-template
579 needs:
580 - build:base
581 variables:
582 COQEXTRAFLAGS: "-async-proofs on -async-proofs-cache force"
583 allow_failure: true
584 only:
585 variables:
586 - $UNRELIABLE =~ /enabled/ && $FULL_CI == "true"
587
588 validate:base:
589 extends: .validate-template
590 variables:
591 CI_TARGETS: "stdlib"
592 needs:
593 - build:base
594 - library:ci-stdlib
595 only: *full-ci
596
597 # we currently don't have a stdlib+32bit job
598 validate:base+32bit:
599 extends: .validate-template
600 needs:
601 - build:base+32bit
602 variables:
603 OPAM_VARIANT: "+32bit"
604 only: *full-ci
605
606 validate:edge+flambda:
607 extends: .validate-template
608 image: $EDGE_IMAGE
609 variables:
610 CI_TARGETS: "stdlib"
611 needs:
612 - build:edge+flambda
613 - library:ci-stdlib+flambda
614 variables:
615 OPAM_VARIANT: "+flambda"
616 only: *full-ci
617
618 # Libraries are by convention the projects that depend on Rocq
619 # but not on its ML API
620
621 library:ci-argosy:
622 extends: .ci-template
623 needs:
624 - build:base
625 - library:ci-stdlib
626
627 library:ci-autosubst:
628 extends: .ci-template-flambda
629 needs:
630 - build:edge+flambda
631 - library:ci-stdlib+flambda
632
633 library:ci-bbv:
634 extends: .ci-template
635 needs:
636 - build:base
637 - library:ci-stdlib
638
639 library:ci-bedrock2:
640 extends: .ci-template-flambda
641 variables:
642 NJOBS: "1"
643 SAVE_BUILD_CI: "1" # for bedrock2_examples
644 needs:
645 - build:edge+flambda
646 - library:ci-stdlib+flambda
647 - library:ci-coqutil
648 - library:ci-kami
649 - library:ci-riscv_coq
650 stage: build-3+
651
652 library:ci-bedrock2_examples:
653 extends: .ci-template-flambda
654 variables:
655 NJOBS: "1"
656 needs:
657 - build:edge+flambda
658 - library:ci-stdlib+flambda
659 - library:ci-coqutil
660 - library:ci-kami
661 - library:ci-riscv_coq
662 - library:ci-bedrock2
663 stage: build-3+
664 timeout: 2h
665
666 library:ci-category_theory:
667 extends: .ci-template-flambda
668 needs:
669 - build:edge+flambda
670 - library:ci-stdlib+flambda
671 - plugin:ci-equations
672 stage: build-2
673
674 library:ci-color:
675 extends: .ci-template-flambda
676 needs:
677 - build:edge+flambda
678 - library:ci-stdlib+flambda
679 - plugin:ci-bignums
680 stage: build-2
681
682 library:ci-compcert:
683 extends: .ci-template-flambda
684 needs:
685 - build:edge+flambda
686 - library:ci-stdlib+flambda
687 - library:ci-flocq
688 - library:ci-menhir
689 stage: build-2
690
691 library:ci-coq_performance_tests:
692 extends: .ci-template
693 needs:
694 - build:base
695 - library:ci-stdlib
696
697 library:ci-coq_tools:
698 extends: .ci-template
699 needs:
700 - build:base
701 - library:ci-stdlib
702
703 library:ci-coqprime:
704 extends: .ci-template-flambda
705 needs:
706 - build:edge+flambda
707 - library:ci-stdlib+flambda
708 - plugin:ci-bignums
709 stage: build-2
710
711 library:ci-coqtail:
712 extends: .ci-template
713
714 library:ci-coquelicot:
715 extends: .ci-template-flambda
716 needs:
717 - build:edge+flambda
718 - library:ci-stdlib+flambda
719 - plugin:ci-elpi_hb
720 - library:ci-mathcomp
721 stage: build-3+
722
723 library:ci-coqutil:
724 extends: .ci-template-flambda
725 needs:
726 - build:edge+flambda
727 - library:ci-stdlib+flambda
728
729 library:ci-cross_crypto:
730 extends: .ci-template
731 needs:
732 - build:base
733 - library:ci-stdlib
734 variables:
735 SAVE_BUILD_CI: "1" # for the minimizer (no install target available)
736
737 library:ci-engine_bench:
738 extends: .ci-template
739 needs:
740 - build:base
741 - library:ci-stdlib
742
743 library:ci-ext_lib:
744 extends: .ci-template-flambda
745 needs:
746 - build:edge+flambda
747 - library:ci-stdlib+flambda
748
749 library:ci-fcsl_pcm:
750 extends: .ci-template-flambda
751 needs:
752 - build:edge+flambda
753 - library:ci-stdlib+flambda
754 - plugin:ci-elpi_hb
755 - library:ci-mathcomp
756 stage: build-2
757
758 library:ci-fiat_crypto:
759 extends: .ci-template-flambda
760 variables:
761 COQEXTRAFLAGS: "-async-proofs-tac-j 0"
762 SAVE_BUILD_CI: "1" # for fiat_crypto_ocaml
763 needs:
764 - build:edge+flambda
765 - library:ci-stdlib+flambda
766 - library:ci-coqutil
767 - library:ci-kami
768 - library:ci-riscv_coq
769 - library:ci-bedrock2
770 - library:ci-coqprime
771 - library:ci-rupicola
772 - plugin:ci-rewriter
773 stage: build-3+
774 timeout: 3h
775
776 library:ci-fiat_crypto_legacy:
777 extends: .ci-template-flambda
778 needs:
779 - build:edge+flambda
780 - library:ci-stdlib+flambda
781 - library:ci-coqprime
782 stage: build-3+
783 timeout: 1h 30min
784
785 # We cannot use flambda due to
786 # https://github.com/ocaml/ocaml/issues/7842, see
787 # https://github.com/rocq-prover/rocq/pull/11916#issuecomment-609977375
788 library:ci-fiat_crypto_ocaml:
789 extends: .ci-template-flambda
790 needs:
791 - build:edge+flambda
792 - library:ci-stdlib+flambda
793 - library:ci-coqutil
794 - library:ci-kami
795 - library:ci-riscv_coq
796 - library:ci-bedrock2
797 - library:ci-coqprime
798 - library:ci-rupicola
799 - plugin:ci-rewriter
800 - library:ci-fiat_crypto
801 stage: build-3+
802 artifacts:
803 paths: [] # These artifacts would go over the size limit
804
805 library:ci-flocq:
806 extends: .ci-template-flambda
807 needs:
808 - build:edge+flambda
809 - library:ci-stdlib+flambda
810
811 library:ci-kami:
812 extends: .ci-template-flambda
813 needs:
814 - build:edge+flambda
815 - library:ci-stdlib+flambda
816
817 library:ci-menhir:
818 extends: .ci-template-flambda
819 needs:
820 - build:edge+flambda
821 - library:ci-stdlib+flambda
822
823 library:ci-oddorder:
824 extends: .ci-template-flambda
825 needs:
826 - build:edge+flambda
827 - plugin:ci-elpi_hb
828 - library:ci-mathcomp
829 stage: build-3+
830
831 library:ci-fourcolor:
832 extends: .ci-template-flambda
833 needs:
834 - build:edge+flambda
835 - plugin:ci-elpi_hb
836 - library:ci-mathcomp
837 stage: build-3+
838
839 library:ci-corn:
840 extends: .ci-template-flambda
841 needs:
842 - build:edge+flambda
843 - library:ci-stdlib+flambda
844 - plugin:ci-bignums
845 - plugin:ci-elpi_hb # CoRN uses elpi only (not HB) - depending on ci-elpi_hb reduces CI package count
846 - library:ci-math_classes
847 stage: build-3+
848
849 library:ci-hott:
850 extends: .ci-template-flambda
851
852 library:ci-iris:
853 extends: .ci-template-flambda
854 needs:
855 - build:edge+flambda
856 - library:ci-stdlib+flambda
857 - library:ci-autosubst
858 stage: build-2
859
860 library:ci-math_classes:
861 extends: .ci-template-flambda
862 needs:
863 - build:edge+flambda
864 - library:ci-stdlib+flambda
865 - plugin:ci-bignums
866 stage: build-2
867
868 library:ci-mathcomp:
869 extends: .ci-template-flambda
870 needs:
871 - build:edge+flambda
872 - plugin:ci-elpi_hb # for Hierarchy Builder
873 stage: build-2
874 variables:
875 SAVE_BUILD_CI: "1" # for mathcomp_test
876
877 library:ci-mathcomp_test:
878 extends: .ci-template-flambda
879 needs:
880 - build:edge+flambda
881 - plugin:ci-elpi_hb
882 - library:ci-mathcomp
883 stage: build-3+
884
885 library:ci-mczify:
886 extends: .ci-template-flambda
887 needs:
888 - build:edge+flambda
889 - library:ci-stdlib+flambda
890 - plugin:ci-elpi_hb
891 - library:ci-mathcomp
892 stage: build-3+
893
894 library:ci-algebra_tactics:
895 extends: .ci-template-flambda
896 needs:
897 - build:edge+flambda
898 - library:ci-stdlib+flambda
899 - plugin:ci-elpi_hb
900 - library:ci-mathcomp
901 - library:ci-mczify
902 stage: build-3+
903
904 library:ci-finmap:
905 extends: .ci-template-flambda
906 needs:
907 - build:edge+flambda
908 - plugin:ci-elpi_hb
909 - library:ci-mathcomp
910 stage: build-3+
911
912 library:ci-bigenough:
913 extends: .ci-template-flambda
914 needs:
915 - build:edge+flambda
916 - plugin:ci-elpi_hb
917 - library:ci-mathcomp
918 stage: build-3+
919
920 library:ci-analysis:
921 extends: .ci-template-flambda
922 needs:
923 - build:edge+flambda
924 - library:ci-mathcomp
925 - library:ci-finmap
926 - library:ci-bigenough
927 - plugin:ci-elpi_hb # for Hierarchy Builder
928 stage: build-3+
929 variables:
930 SAVE_BUILD_CI: "1" # for analysis_stdlib
931
932 library:ci-analysis_stdlib:
933 extends: .ci-template-flambda
934 needs:
935 - build:edge+flambda
936 - library:ci-mathcomp
937 - library:ci-finmap
938 - library:ci-bigenough
939 - library:ci-analysis
940 - plugin:ci-elpi_hb # for Hierarchy Builder
941 - library:ci-stdlib+flambda
942 stage: build-3+
943
944 library:ci-neural_net_interp:
945 extends: .ci-template
946 needs:
947 - build:base
948 - library:ci-stdlib
949
950 library:ci-paco:
951 extends: .ci-template-flambda
952 needs:
953 - build:edge+flambda
954 - library:ci-stdlib+flambda
955
956 library:ci-itree:
957 extends: .ci-template-flambda
958 needs:
959 - build:edge+flambda
960 - library:ci-stdlib+flambda
961 - library:ci-ext_lib
962 - library:ci-paco
963 stage: build-2
964
965 library:ci-itree_io:
966 extends: .ci-template-flambda
967 needs:
968 - build:edge+flambda
969 - library:ci-stdlib+flambda
970 - library:ci-ext_lib
971 - library:ci-paco
972 - library:ci-simple_io
973 - library:ci-itree
974 stage: build-3+
975
976 library:ci-simple_io:
977 extends: .ci-template-flambda
978 needs:
979 - build:edge+flambda
980 - library:ci-stdlib+flambda
981 - library:ci-ext_lib
982 stage: build-2
983
984 .library:ci-sf: # disabled until https://github.com/DeepSpec/sf/pull/16 can get in / the process for overlays there can be documented
985 extends: .ci-template
986 needs:
987 - build:base
988 - library:ci-stdlib
989
990 library:ci-stdlib:
991 extends: .ci-template
992 variables:
993 SAVE_BUILD_CI: "1" # for test suite
994
995 library:ci-stdlib+flambda:
996 extends: .ci-template-flambda
997 variables:
998 CI_TARGETS: "stdlib"
999 SAVE_BUILD_CI: "1" # for test suite
1000
1001 library:ci-stdlib_test:
1002 extends: .ci-template
1003 needs:
1004 - build:base
1005 - library:ci-stdlib
1006 stage: build-2
1007
1008 library:ci-stdlib_doc:
1009 extends: .ci-template-flambda
1010 needs:
1011 - build:edge+flambda
1012 - library:ci-stdlib+flambda
1013 stage: build-2
1014 variables:
1015 SAVE_BUILD_CI: "1" # for doc:refman:deploy
1016
1017 library:ci-tlc:
1018 extends: .ci-template
1019 needs:
1020 - build:base
1021 - library:ci-stdlib
1022
1023 library:ci-unimath:
1024 extends: .ci-template-flambda
1025
1026 library:ci-verdi_raft:
1027 extends: .ci-template-flambda
1028 needs:
1029 - build:edge+flambda
1030 - library:ci-stdlib+flambda
1031
1032 library:ci-vst:
1033 extends: .ci-template-flambda
1034 variables:
1035 NJOBS: "1"
1036 needs:
1037 - build:edge+flambda
1038 - library:ci-stdlib+flambda
1039 - library:ci-flocq
1040 - library:ci-menhir
1041 - library:ci-compcert
1042 stage: build-3+
1043 timeout: 2h
1044
1045 library:ci-deriving:
1046 extends: .ci-template-flambda
1047 needs:
1048 - build:edge+flambda
1049 - library:ci-stdlib+flambda
1050 - plugin:ci-elpi_hb
1051 - library:ci-mathcomp
1052 stage: build-3+
1053
1054 library:ci-mathcomp_word:
1055 extends: .ci-template-flambda
1056 needs:
1057 - build:edge+flambda
1058 - library:ci-stdlib+flambda
1059 - plugin:ci-elpi_hb
1060 - library:ci-mathcomp
1061 stage: build-2
1062
1063 .library:ci-jasmin: # disabled until repaired
1064 extends: .ci-template-flambda
1065 needs:
1066 - build:edge+flambda
1067 - library:ci-stdlib+flambda
1068 - plugin:ci-elpi_hb
1069 - library:ci-mathcomp
1070 - library:ci-mathcomp_word
1071 - library:ci-mczify
1072 - library:ci-algebra_tactics
1073 - library:ci-ext_lib
1074 - library:ci-paco
1075 - library:ci-itree
1076 stage: build-3+
1077
1078 library:ci-http:
1079 extends: .ci-template-flambda
1080 needs:
1081 - build:edge+flambda
1082 - library:ci-stdlib+flambda
1083 - plugin:ci-elpi_hb
1084 - library:ci-mathcomp
1085 - library:ci-menhir
1086 - library:ci-ext_lib
1087 - library:ci-simple_io
1088 - library:ci-paco
1089 - library:ci-itree
1090 - library:ci-itree_io
1091 - plugin:ci-quickchick
1092 stage: build-3+
1093 variables:
1094 CI_TARGETS: "ceres parsec json async_test http"
1095
1096 # Plugins are by definition the projects that depend on Rocq's ML API
1097
1098 plugin:ci-aac_tactics:
1099 extends: .ci-template-flambda
1100 needs:
1101 - build:edge+flambda
1102 - library:ci-stdlib+flambda
1103
1104 plugin:ci-atbr:
1105 extends: .ci-template-flambda
1106 needs:
1107 - build:edge+flambda
1108 - library:ci-stdlib+flambda
1109
1110 plugin:ci-autosubst_ocaml:
1111 extends: .ci-template-flambda
1112
1113 plugin:ci-itauto:
1114 extends: .ci-template-flambda
1115 needs:
1116 - build:edge+flambda
1117 - library:ci-stdlib+flambda
1118 allow_failure: true
1119
1120 plugin:ci-bignums:
1121 extends: .ci-template-flambda
1122 needs:
1123 - build:edge+flambda
1124 - library:ci-stdlib+flambda
1125
1126 plugin:ci-coinduction:
1127 extends: .ci-template-flambda
1128 needs:
1129 - build:edge+flambda
1130 - library:ci-stdlib+flambda
1131
1132 plugin:ci-coq_dpdgraph:
1133 extends: .ci-template-flambda
1134 needs:
1135 - build:edge+flambda
1136 - library:ci-stdlib+flambda
1137
1138 plugin:ci-coqhammer:
1139 extends: .ci-template-flambda
1140 needs:
1141 - build:edge+flambda
1142 - library:ci-stdlib+flambda
1143
1144 plugin:ci-elpi_hb:
1145 extends: .ci-template-flambda
1146 needs:
1147 - build:edge+flambda
1148 variables:
1149 CI_TARGETS: "elpi hb"
1150 SAVE_BUILD_CI: "1" # for elpi_test and hb_test
1151
1152 plugin:ci-elpi_test:
1153 extends: .ci-template-flambda
1154 needs:
1155 - build:edge+flambda
1156 - library:ci-stdlib+flambda
1157 - plugin:ci-elpi_hb
1158 stage: build-2
1159
1160 plugin:ci-hb_test:
1161 extends: .ci-template-flambda
1162 needs:
1163 - build:edge+flambda
1164 - library:ci-stdlib+flambda
1165 - plugin:ci-elpi_hb
1166 stage: build-2
1167
1168 plugin:ci-equations:
1169 extends: .ci-template-flambda
1170 needs:
1171 - build:edge+flambda
1172 - library:ci-stdlib+flambda
1173 variables:
1174 SAVE_BUILD_CI: "1" # for equations_test
1175
1176 plugin:ci-equations_test:
1177 extends: .ci-template-flambda
1178 needs:
1179 - build:edge+flambda
1180 - library:ci-stdlib+flambda
1181 - plugin:ci-equations
1182 stage: build-2
1183
1184 plugin:ci-fiat_parsers:
1185 extends: .ci-template
1186 needs:
1187 - build:base
1188 - library:ci-stdlib
1189
1190 plugin:ci-lean_importer:
1191 extends: .ci-template
1192 needs:
1193 - build:base
1194 - library:ci-stdlib
1195
1196 plugin:ci-ltac2_compiler:
1197 extends: .ci-template
1198
1199 plugin:ci-metarocq:
1200 extends: .ci-template-flambda
1201 needs:
1202 - build:edge+flambda
1203 - library:ci-stdlib+flambda
1204 - plugin:ci-equations
1205 stage: build-2
1206 timeout: 1h 30min
1207
1208 plugin:ci-mtac2:
1209 extends: .ci-template-flambda
1210 needs:
1211 - build:edge+flambda
1212 - library:ci-stdlib+flambda
1213 variables:
1214 CI_TARGETS: "unicoq mtac2"
1215
1216 plugin:ci-paramcoq:
1217 extends: .ci-template-flambda
1218 needs:
1219 - build:edge+flambda
1220 - library:ci-stdlib+flambda
1221
1222 plugin:ci-perennial:
1223 extends: .ci-template-flambda
1224 needs:
1225 - build:edge+flambda
1226 - library:ci-stdlib+flambda
1227
1228 plugin:plugin-tutorial:
1229 stage: build-0
1230 interruptible: true
1231 extends: .auto-use-tags
1232 script:
1233 - ./configure -prefix "$(pwd)/_install_ci"
1234 - make -j "$NJOBS" plugin-tutorial
1235
1236 plugin:ci-quickchick:
1237 extends: .ci-template-flambda
1238 needs:
1239 - build:edge+flambda
1240 - library:ci-stdlib+flambda
1241 - library:ci-ext_lib
1242 - library:ci-simple_io
1243 - plugin:ci-elpi_hb
1244 - library:ci-mathcomp
1245 stage: build-3+
1246 variables:
1247 SAVE_BUILD_CI: "1" # for quickchick_test
1248
1249 plugin:ci-quickchick_test:
1250 extends: .ci-template-flambda
1251 needs:
1252 - build:edge+flambda
1253 - library:ci-stdlib+flambda
1254 - library:ci-ext_lib
1255 - library:ci-simple_io
1256 - plugin:ci-elpi_hb
1257 - library:ci-mathcomp
1258 - plugin:ci-quickchick
1259 stage: build-3+
1260
1261 plugin:ci-reduction_effects:
1262 extends: .ci-template-flambda
1263
1264 plugin:ci-relation_algebra:
1265 extends: .ci-template-flambda
1266 needs:
1267 - build:edge+flambda
1268 - library:ci-stdlib+flambda
1269 - plugin:ci-elpi_hb
1270 - library:ci-mathcomp
1271 - plugin:ci-aac_tactics
1272 stage: build-3+
1273
1274 plugin:ci-rewriter:
1275 extends: .ci-template-flambda
1276 needs:
1277 - build:edge+flambda
1278 - library:ci-stdlib+flambda
1279
1280 library:ci-riscv_coq:
1281 extends: .ci-template-flambda
1282 needs:
1283 - build:edge+flambda
1284 - library:ci-stdlib+flambda
1285 - library:ci-coqutil
1286 stage: build-2
1287
1288 library:ci-rupicola:
1289 extends: .ci-template-flambda
1290 needs:
1291 - build:edge+flambda
1292 - library:ci-stdlib+flambda
1293 - library:ci-coqutil
1294 - library:ci-kami
1295 - library:ci-riscv_coq
1296 - library:ci-bedrock2
1297 stage: build-3+
1298
1299 # Disabled until a new maintainer is available
1300 #
1301 # plugin:ci-coq_lsp:
1302 # extends: .ci-template-flambda
1303 # needs:
1304 # - build:edge+flambda
1305 # - library:ci-stdlib+flambda
1306
1307 plugin:ci-vsrocq:
1308 extends: .ci-template-flambda
1309
1310 plugin:ci-smtcoq:
1311 extends: .ci-template
1312 needs:
1313 - build:base
1314 - library:ci-stdlib
1315
1316 plugin:ci-stalmarck:
1317 extends: .ci-template
1318 needs:
1319 - build:base
1320 - library:ci-stdlib
1321
1322 plugin:ci-tactician:
1323 extends: .ci-template-flambda
1324
1325 plugin:ci-waterproof:
1326 extends: .ci-template-flambda
1327 needs:
1328 - build:edge+flambda
1329 - library:ci-stdlib+flambda
1330
1331 doc:ci-refman:
1332 extends: .ci-template-flambda
1333 needs:
1334 - build:edge+flambda
1335 - library:ci-stdlib+flambda
1336 - plugin:ci-elpi_hb
1337 - library:ci-mathcomp
1338 - library:ci-mczify
1339 stage: build-3+
1340 artifacts:
1341 paths:
1342 - _build/log
1343 - _build/default/doc/refman-html
1344 - _build/default/doc/refman-pdf
1345
1346 pipeline-stats:
1347 image: $EDGE_IMAGE
1348 extends: .auto-use-tags
1349 stage: stats
1350 dependencies: []
1351 before_script: []
1352 script:
1353 - dev/tools/pipeline-stats.py
1354 when: always