ci: made pipeline interruptible
This commit is contained in:
parent
b8134edbff
commit
44de499d40
@ -21,6 +21,9 @@ workflow:
|
|||||||
- if: $CI_COMMIT_BRANCH && $CI_OPEN_MERGE_REQUESTS
|
- if: $CI_COMMIT_BRANCH && $CI_OPEN_MERGE_REQUESTS
|
||||||
when: never
|
when: never
|
||||||
- if: $CI_COMMIT_BRANCH
|
- if: $CI_COMMIT_BRANCH
|
||||||
|
auto_cancel:
|
||||||
|
on_new_commit: interruptible
|
||||||
|
|
||||||
|
|
||||||
include:
|
include:
|
||||||
- template: Security/Secret-Detection.gitlab-ci.yml
|
- template: Security/Secret-Detection.gitlab-ci.yml
|
||||||
@ -55,6 +58,7 @@ formatter:
|
|||||||
- black --check --diff --color ./
|
- black --check --diff --color ./
|
||||||
rules:
|
rules:
|
||||||
- if: $CI_PROJECT_PATH == "bec/ophyd_devices"
|
- if: $CI_PROJECT_PATH == "bec/ophyd_devices"
|
||||||
|
interruptible: true
|
||||||
|
|
||||||
pylint:
|
pylint:
|
||||||
stage: Formatter
|
stage: Formatter
|
||||||
@ -71,6 +75,7 @@ pylint:
|
|||||||
expire_in: 1 week
|
expire_in: 1 week
|
||||||
rules:
|
rules:
|
||||||
- if: $CI_PROJECT_PATH == "bec/ophyd_devices"
|
- if: $CI_PROJECT_PATH == "bec/ophyd_devices"
|
||||||
|
interruptible: true
|
||||||
|
|
||||||
pylint-check:
|
pylint-check:
|
||||||
stage: Formatter
|
stage: Formatter
|
||||||
@ -104,12 +109,14 @@ pylint-check:
|
|||||||
expire_in: 1 week
|
expire_in: 1 week
|
||||||
rules:
|
rules:
|
||||||
- if: $CI_PROJECT_PATH == "bec/ophyd_devices"
|
- if: $CI_PROJECT_PATH == "bec/ophyd_devices"
|
||||||
|
interruptible: true
|
||||||
|
|
||||||
secret_detection:
|
secret_detection:
|
||||||
before_script:
|
before_script:
|
||||||
- ""
|
- ""
|
||||||
rules:
|
rules:
|
||||||
- if: $CI_PROJECT_PATH == "bec/ophyd_devices"
|
- if: $CI_PROJECT_PATH == "bec/ophyd_devices"
|
||||||
|
interruptible: true
|
||||||
|
|
||||||
pytest:
|
pytest:
|
||||||
stage: test
|
stage: test
|
||||||
@ -125,6 +132,7 @@ pytest:
|
|||||||
coverage_report:
|
coverage_report:
|
||||||
coverage_format: cobertura
|
coverage_format: cobertura
|
||||||
path: coverage.xml
|
path: coverage.xml
|
||||||
|
interruptible: true
|
||||||
|
|
||||||
config_test:
|
config_test:
|
||||||
stage: test
|
stage: test
|
||||||
@ -135,6 +143,7 @@ config_test:
|
|||||||
- ./config_tests
|
- ./config_tests
|
||||||
when: on_failure
|
when: on_failure
|
||||||
expire_in: "30 days"
|
expire_in: "30 days"
|
||||||
|
interruptible: true
|
||||||
|
|
||||||
tests-3.11:
|
tests-3.11:
|
||||||
stage: AdditionalTests
|
stage: AdditionalTests
|
||||||
@ -147,6 +156,7 @@ tests-3.11:
|
|||||||
script:
|
script:
|
||||||
- pytest -v --random-order ./tests
|
- pytest -v --random-order ./tests
|
||||||
allow_failure: true
|
allow_failure: true
|
||||||
|
interruptible: true
|
||||||
|
|
||||||
tests-3.12:
|
tests-3.12:
|
||||||
extends: "tests-3.11"
|
extends: "tests-3.11"
|
||||||
@ -162,6 +172,7 @@ trigger_bec:
|
|||||||
OPHYD_DEVICES_BRANCH: $CI_COMMIT_REF_NAME
|
OPHYD_DEVICES_BRANCH: $CI_COMMIT_REF_NAME
|
||||||
rules:
|
rules:
|
||||||
- if: '$CI_MERGE_REQUEST_TARGET_BRANCH_NAME == "main" && $CI_PROJECT_PATH == "bec/ophyd_devices"'
|
- if: '$CI_MERGE_REQUEST_TARGET_BRANCH_NAME == "main" && $CI_PROJECT_PATH == "bec/ophyd_devices"'
|
||||||
|
interruptible: true
|
||||||
|
|
||||||
trigger:
|
trigger:
|
||||||
parallel:
|
parallel:
|
||||||
@ -189,6 +200,7 @@ trigger:
|
|||||||
- if: '$CI_PIPELINE_SOURCE == "web" && $CI_PROJECT_PATH == "bec/ophyd_devices"'
|
- if: '$CI_PIPELINE_SOURCE == "web" && $CI_PROJECT_PATH == "bec/ophyd_devices"'
|
||||||
- if: '$CI_MERGE_REQUEST_TARGET_BRANCH_NAME == "main" && $CI_PROJECT_PATH == "bec/ophyd_devices"'
|
- if: '$CI_MERGE_REQUEST_TARGET_BRANCH_NAME == "main" && $CI_PROJECT_PATH == "bec/ophyd_devices"'
|
||||||
- if: '$CI_MERGE_REQUEST_TARGET_BRANCH_NAME == "production" && $CI_PROJECT_PATH == "bec/ophyd_devices"'
|
- if: '$CI_MERGE_REQUEST_TARGET_BRANCH_NAME == "production" && $CI_PROJECT_PATH == "bec/ophyd_devices"'
|
||||||
|
interruptible: true
|
||||||
|
|
||||||
semver:
|
semver:
|
||||||
stage: Deploy
|
stage: Deploy
|
||||||
@ -217,3 +229,4 @@ semver:
|
|||||||
allow_failure: false
|
allow_failure: false
|
||||||
rules:
|
rules:
|
||||||
- if: '$CI_COMMIT_REF_NAME == "main" && $CI_PROJECT_PATH == "bec/ophyd_devices"'
|
- if: '$CI_COMMIT_REF_NAME == "main" && $CI_PROJECT_PATH == "bec/ophyd_devices"'
|
||||||
|
interruptible: true
|
||||||
|
Loading…
x
Reference in New Issue
Block a user