Skip to content

Commit

Permalink
Backport PR coq#16970: CI: do not set interruptible:true on protected…
Browse files Browse the repository at this point in the history
… branches
  • Loading branch information
Zimmi48 committed Mar 31, 2023
2 parents db9e7d0 + 4380c4b commit 686e934
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 6 deletions.
17 changes: 11 additions & 6 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,16 @@
image: "$IMAGE"

default:
interruptible: true
timeout: 1h
include:
- local: '/dev/ci/gitlab-modes/protected-mode.yml'
rules:
- if: $CI_COMMIT_BRANCH == "master"
- if: $CI_COMMIT_BRANCH =~ /^v.*\..*$/

- local: "/dev/ci/gitlab-modes/normal-mode.yml"
rules:
- if: $CI_COMMIT_BRANCH != "master" && $CI_COMMIT_BRANCH !~ /^v.*\..*$/

- local: '/dev/bench/gitlab-bench.yml'

stages:
- docker
Expand All @@ -28,9 +36,6 @@ variables:
OPAM_VARIANT: ""
GIT_DEPTH: "10"

include:
- local: '/dev/bench/gitlab-bench.yml'

before_script:
- dev/ci/gitlab-section.sh start before_script before_script
- cat /proc/{cpu,mem}info || true
Expand Down
4 changes: 4 additions & 0 deletions dev/ci/gitlab-modes/normal-mode.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@

default:
interruptible: true
timeout: 1h
4 changes: 4 additions & 0 deletions dev/ci/gitlab-modes/protected-mode.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@

default:
interruptible: false
timeout: 1h

0 comments on commit 686e934

Please sign in to comment.