From 16eeb89a3778d6fa352c6cacc20b1e092c29abd2 Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Fri, 16 Dec 2022 19:26:39 -0600 Subject: [PATCH] GitLab CI: let jobs auto-cancel when a new commit is pushed to the same branch --- .gitlab-ci.yml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 01c6314c9..14a8227f7 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -33,6 +33,7 @@ danger: - export CI_MERGE_REQUEST_IID=${CI_OPEN_MERGE_REQUESTS#*!} - npx danger ci allow_failure: true + interruptible: true lint-js: stage: test @@ -45,6 +46,7 @@ lint-js: - "**/*.tsx" - ".eslintignore" - ".eslintrc.js" + interruptible: true lint-sass: stage: test @@ -54,6 +56,7 @@ lint-sass: - "**/*.scss" - "**/*.css" - ".stylelintrc.json" + interruptible: true jest: stage: test @@ -76,6 +79,7 @@ jest: coverage_report: coverage_format: cobertura path: .coverage/cobertura-coverage.xml + interruptible: true nginx-test: stage: test @@ -85,6 +89,7 @@ nginx-test: only: changes: - "installation/mastodon.conf" + interruptible: true build-production: stage: test @@ -94,6 +99,7 @@ build-production: artifacts: paths: - static + interruptible: true docs-deploy: stage: deploy @@ -107,6 +113,7 @@ docs-deploy: - develop changes: - "docs/**/*" + interruptible: true # Supposed to fail when translations are outdated, instead always passes # @@ -127,6 +134,7 @@ review: script: - npx -y surge static $CI_COMMIT_REF_SLUG.git.soapbox.pub allow_failure: true + interruptible: true pages: stage: deploy @@ -142,6 +150,7 @@ pages: only: refs: - develop + interruptible: true docker: stage: deploy @@ -157,4 +166,5 @@ docker: - docker push $CI_REGISTRY_IMAGE only: refs: - - develop \ No newline at end of file + - develop + interruptible: true \ No newline at end of file