Skip to content
Snippets Groups Projects
Commit c58b15d3 authored by Allan Blanchard's avatar Allan Blanchard
Browse files

Merge branch 'feature/dune/interruptible-ci-jobs' into 'feature/bobot/jbuilder'

[ci] Makes most jobs interruptible

See merge request frama-c/frama-c!3804
parents 2a89d496 3436c7f1
No related branches found
No related tags found
No related merge requests found
...@@ -4,6 +4,13 @@ stages: ...@@ -4,6 +4,13 @@ stages:
- distrib_and_compatibility - distrib_and_compatibility
- make_public - make_public
################################################################################
### DEFAULT JOB PARAMETERS
default:
interruptible: true
tags: [ nix ]
################################################################################ ################################################################################
### VARIABLES ### VARIABLES
...@@ -28,8 +35,6 @@ check-no-old-frama-c: ...@@ -28,8 +35,6 @@ check-no-old-frama-c:
script: script:
- (! git merge-base --is-ancestor a1e186c68a6418a53b3dc06237f49e8dcbf75f4a HEAD) - (! git merge-base --is-ancestor a1e186c68a6418a53b3dc06237f49e8dcbf75f4a HEAD)
- git merge-base --is-ancestor a35d2118fe6999dddce9e1847eff626fae9cc37c HEAD - git merge-base --is-ancestor a35d2118fe6999dddce9e1847eff626fae9cc37c HEAD
tags:
- nix
frama-c: frama-c:
stage: build stage: build
...@@ -41,8 +46,6 @@ frama-c: ...@@ -41,8 +46,6 @@ frama-c:
- commits.nix - commits.nix
- results.log - results.log
expire_in: 1 day expire_in: 1 day
tags:
- nix
header-check: header-check:
stage: build stage: build
...@@ -52,8 +55,6 @@ header-check: ...@@ -52,8 +55,6 @@ header-check:
- ls -la - ls -la
- nix-shell nix/pkgs.nix -A ocaml-ng.ocamlPackages_$OCAML.frama-c-checkers-shell - nix-shell nix/pkgs.nix -A ocaml-ng.ocamlPackages_$OCAML.frama-c-checkers-shell
--run 'make -f share/Makefile.headers check-headers' --run 'make -f share/Makefile.headers check-headers'
tags:
- nix
ivette: ivette:
stage: build stage: build
...@@ -76,8 +77,6 @@ lint: ...@@ -76,8 +77,6 @@ lint:
script: script:
- nix-shell nix/pkgs.nix -A ocaml-ng.ocamlPackages_$OCAML.frama-c-checkers-shell - nix-shell nix/pkgs.nix -A ocaml-ng.ocamlPackages_$OCAML.frama-c-checkers-shell
--run 'make -f share/Makefile.linting lint' --run 'make -f share/Makefile.linting lint'
tags:
- nix
################################################################################ ################################################################################
### TESTS ### TESTS
...@@ -86,8 +85,6 @@ acsl-importer: ...@@ -86,8 +85,6 @@ acsl-importer:
stage: tests stage: tests
script: script:
- ./nix/external-plugin-ci.sh ACSL-importer - ./nix/external-plugin-ci.sh ACSL-importer
tags:
- nix
# build-from-distrib-tarball: # build-from-distrib-tarball:
# stage: tests # stage: tests
...@@ -100,99 +97,71 @@ caveat-importer: ...@@ -100,99 +97,71 @@ caveat-importer:
stage: tests stage: tests
script: script:
- ./nix/external-plugin-ci.sh Caveat-importer - ./nix/external-plugin-ci.sh Caveat-importer
tags:
- nix
cfp: cfp:
stage: tests stage: tests
script: script:
- ./nix/external-plugin-ci.sh context-from-precondition - ./nix/external-plugin-ci.sh context-from-precondition
tags:
- nix
e-acsl-tests: e-acsl-tests:
stage: tests stage: tests
script: script:
- nix-build nix/pkgs.nix -A ocaml-ng.ocamlPackages_$OCAML.e-acsl-tests - nix-build nix/pkgs.nix -A ocaml-ng.ocamlPackages_$OCAML.e-acsl-tests
tags:
- nix
eva-tests: eva-tests:
stage: tests stage: tests
script: script:
- nix-build nix/pkgs.nix -A ocaml-ng.ocamlPackages_$OCAML.eva-tests - nix-build nix/pkgs.nix -A ocaml-ng.ocamlPackages_$OCAML.eva-tests
tags:
- nix
frama-clang: frama-clang:
stage: tests stage: tests
script: script:
- ./nix/external-plugin-ci.sh frama-clang - ./nix/external-plugin-ci.sh frama-clang
tags:
- nix
genassigns: genassigns:
stage: tests stage: tests
script: script:
- ./nix/external-plugin-ci.sh genassigns - ./nix/external-plugin-ci.sh genassigns
tags:
- nix
kernel-tests: kernel-tests:
stage: tests stage: tests
script: script:
- nix-build nix/pkgs.nix -A ocaml-ng.ocamlPackages_$OCAML.kernel-tests - nix-build nix/pkgs.nix -A ocaml-ng.ocamlPackages_$OCAML.kernel-tests
tags:
- nix
linea-cabs: linea-cabs:
stage: tests stage: tests
script: script:
- ./nix/external-plugin-ci.sh linea-cabs - ./nix/external-plugin-ci.sh linea-cabs
tags:
- nix
metacsl: metacsl:
stage: tests stage: tests
script: script:
- ./nix/external-plugin-ci.sh meta - ./nix/external-plugin-ci.sh meta
tags:
- nix
mthread: mthread:
stage: tests stage: tests
script: script:
- ./nix/external-plugin-ci.sh mthread - ./nix/external-plugin-ci.sh mthread
tags:
- nix
plugins-tests: plugins-tests:
stage: tests stage: tests
script: script:
- nix-build nix/pkgs.nix -A ocaml-ng.ocamlPackages_$OCAML.plugins-tests - nix-build nix/pkgs.nix -A ocaml-ng.ocamlPackages_$OCAML.plugins-tests
tags:
- nix
security: security:
stage: tests stage: tests
script: script:
- ./nix/external-plugin-ci.sh security - ./nix/external-plugin-ci.sh security
tags:
- nix
volatile: volatile:
stage: tests stage: tests
script: script:
- ./nix/external-plugin-ci.sh Volatile - ./nix/external-plugin-ci.sh Volatile
tags:
- nix
wp-tests: wp-tests:
stage: tests stage: tests
script: script:
- nix-build nix/pkgs.nix -A ocaml-ng.ocamlPackages_$OCAML.wp-tests - nix-build nix/pkgs.nix -A ocaml-ng.ocamlPackages_$OCAML.wp-tests
tags:
- nix
################################################################################ ################################################################################
### DISTRIB ### DISTRIB
...@@ -203,8 +172,6 @@ wp-tests: ...@@ -203,8 +172,6 @@ wp-tests:
stage: distrib_and_compatibility stage: distrib_and_compatibility
script: script:
- nix-build -o api nix/pkgs.nix -A ocaml-ng.ocamlPackages_$OCAML.api-doc - nix-build -o api nix/pkgs.nix -A ocaml-ng.ocamlPackages_$OCAML.api-doc
tags:
- nix
api-doc-default: # Check that we successfully build but no artifact api-doc-default: # Check that we successfully build but no artifact
<<: *api-doc <<: *api-doc
...@@ -232,8 +199,6 @@ api-doc-scheduled: # Keep artifact for master branch each night ...@@ -232,8 +199,6 @@ api-doc-scheduled: # Keep artifact for master branch each night
stage: distrib_and_compatibility stage: distrib_and_compatibility
script: script:
- ./nix/internal-tests.sh - ./nix/internal-tests.sh
tags:
- nix
internal: internal:
<<: *internal_template <<: *internal_template
...@@ -250,8 +215,6 @@ internal_nightly: ...@@ -250,8 +215,6 @@ internal_nightly:
stage: distrib_and_compatibility stage: distrib_and_compatibility
script: script:
- nix-build -o manuals nix/pkgs.nix -A ocaml-ng.ocamlPackages_$OCAML.manuals - nix-build -o manuals nix/pkgs.nix -A ocaml-ng.ocamlPackages_$OCAML.manuals
tags:
- nix
manuals: manuals:
<<: *manuals <<: *manuals
...@@ -268,8 +231,6 @@ manuals: ...@@ -268,8 +231,6 @@ manuals:
stage: distrib_and_compatibility stage: distrib_and_compatibility
script: script:
- nix-build nix/pkgs.nix -A ocaml-ng.ocamlPackages_$OCAML.default-config-tests - nix-build nix/pkgs.nix -A ocaml-ng.ocamlPackages_$OCAML.default-config-tests
tags:
- nix
# ocaml-4.11: # ocaml-4.11:
# variables: # variables:
...@@ -304,10 +265,9 @@ make_public: ...@@ -304,10 +265,9 @@ make_public:
- echo "$FRAMA_C_PUBLIC_SSH_PRIVATE_KEY" | nix run -f channel:nixos-19.03 coreutils --command base64 -d > nix/frama-c-public/id_ed25519 - echo "$FRAMA_C_PUBLIC_SSH_PRIVATE_KEY" | nix run -f channel:nixos-19.03 coreutils --command base64 -d > nix/frama-c-public/id_ed25519
- nix run -f channel:nixos-19.03 coreutils --command chmod 400 nix/frama-c-public/id_ed25519 - nix run -f channel:nixos-19.03 coreutils --command chmod 400 nix/frama-c-public/id_ed25519
- GIT_SSH=nix/frama-c-public/ssh.sh nix run -f channel:nixos-19.03 openssh --command git push git@git.frama-c.com:pub/frama-c.git origin/master:refs/heads/master - GIT_SSH=nix/frama-c-public/ssh.sh nix run -f channel:nixos-19.03 openssh --command git push git@git.frama-c.com:pub/frama-c.git origin/master:refs/heads/master
tags:
- nix
only: only:
- schedules - schedules
interruptible: false
make_public_meta: make_public_meta:
stage: make_public stage: make_public
...@@ -316,10 +276,9 @@ make_public_meta: ...@@ -316,10 +276,9 @@ make_public_meta:
- nix run -f channel:nixos-19.03 coreutils --command chmod 400 nix/frama-c-public/id_ed25519 - nix run -f channel:nixos-19.03 coreutils --command chmod 400 nix/frama-c-public/id_ed25519
- GIT_SSH=$PWD/nix/frama-c-public/ssh.sh nix run -f channel:nixos-19.03 openssh --command git clone git@git.frama-c.com:frama-c/meta.git nix/frama-c-public/meta - GIT_SSH=$PWD/nix/frama-c-public/ssh.sh nix run -f channel:nixos-19.03 openssh --command git clone git@git.frama-c.com:frama-c/meta.git nix/frama-c-public/meta
- GIT_SSH=$PWD/nix/frama-c-public/ssh.sh nix run -f channel:nixos-19.03 openssh --command git -C nix/frama-c-public/meta push git@git.frama-c.com:pub/meta origin/master:refs/heads/master - GIT_SSH=$PWD/nix/frama-c-public/ssh.sh nix run -f channel:nixos-19.03 openssh --command git -C nix/frama-c-public/meta push git@git.frama-c.com:pub/meta origin/master:refs/heads/master
tags:
- nix
only: only:
- schedules - schedules
interruptible: false
make_public_fclang: make_public_fclang:
stage: make_public stage: make_public
...@@ -328,7 +287,6 @@ make_public_fclang: ...@@ -328,7 +287,6 @@ make_public_fclang:
- nix run -f channel:nixos-19.03 coreutils --command chmod 400 nix/frama-c-public/id_ed25519 - nix run -f channel:nixos-19.03 coreutils --command chmod 400 nix/frama-c-public/id_ed25519
- GIT_SSH=$PWD/nix/frama-c-public/ssh.sh nix run -f channel:nixos-19.03 openssh --command git clone git@git.frama-c.com:frama-c/frama-clang.git nix/frama-c-public/frama-clang - GIT_SSH=$PWD/nix/frama-c-public/ssh.sh nix run -f channel:nixos-19.03 openssh --command git clone git@git.frama-c.com:frama-c/frama-clang.git nix/frama-c-public/frama-clang
- GIT_SSH=$PWD/nix/frama-c-public/ssh.sh nix run -f channel:nixos-19.03 openssh --command git -C nix/frama-c-public/frama-clang push git@git.frama-c.com:pub/frama-clang origin/master:refs/heads/master - GIT_SSH=$PWD/nix/frama-c-public/ssh.sh nix run -f channel:nixos-19.03 openssh --command git -C nix/frama-c-public/frama-clang push git@git.frama-c.com:pub/frama-clang origin/master:refs/heads/master
tags:
- nix
only: only:
- schedules - schedules
interruptible: false
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