Commit 8debe276 authored by Jan Kiene's avatar Jan Kiene
Browse files

move common rules into shared include

parent e101290a
Loading
Loading
Loading
Loading

includes/rules.yml

0 → 100644
+5 −0
Original line number Diff line number Diff line
.rules-merge-request-to-main:
  rules:
    - if: $CI_PIPELINE_SOURCE == 'merge_request_event' && $CI_MERGE_REQUEST_TARGET_BRANCH_NAME == "main"
    - if: $CI_PIPELINE_SOURCE == 'push'
      when: never
+1 −6
Original line number Diff line number Diff line
@@ -5,6 +5,7 @@ include:
  - local: includes/complexity-jobs.yml
  - local: includes/smoke-test.yml
  - local: includes/build-jobs.yml
  - local: includes/rules.yml

default:
  # by default, we want all jobs to be interruptible, and we need to configure this explicitly
@@ -210,12 +211,6 @@ workflow:
      when: never
    - when: never

.rules-merge-request-to-main:
  rules:
    - if: $CI_PIPELINE_SOURCE == 'merge_request_event' && $CI_MERGE_REQUEST_TARGET_BRANCH_NAME == "main"
    - if: $CI_PIPELINE_SOURCE == 'push'
      when: never

.rules-merge-request-to-main-no-draft:
  rules:
    - if: $CI_MERGE_REQUEST_TITLE =~ /^(\[Draft\]|\(Draft\)|Draft:)/
+1 −12
Original line number Diff line number Diff line
@@ -5,6 +5,7 @@ include:
  - local: includes/complexity-jobs.yml
  - local: includes/smoke-test.yml
  - local: includes/build-jobs.yml
  - local: includes/rules.yml

default:
  # by default, we want all jobs to be interruptible, and we need to configure this explicitly
@@ -100,20 +101,10 @@ workflow:
# Rules templates
# ---------------------------------------------------------------

.rules-merge-request-to-main:
  rules:
    - if: $CI_PIPELINE_SOURCE == 'merge_request_event' && $CI_MERGE_REQUEST_TARGET_BRANCH_NAME == "main"
    - if: $CI_PIPELINE_SOURCE == 'push'
      when: never

.rules-main-push:
  rules:
    - if: $CI_PIPELINE_SOURCE == 'push' && $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH

.rules-main-scheduled:
  rules:
    - if: $CI_PIPELINE_SOURCE == 'schedule' && $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH

# ---------------------------------------------------------------
# Generic script anchors
# ---------------------------------------------------------------
@@ -2166,7 +2157,6 @@ sanitizer-test-osba-planar-hoa3-ism4:
.coverage-test-template:
  extends:
    - .test-job-linux-needs-testv-dir
    - .rules-main-scheduled
  tags:
    - ivas-linux-fast
  stage: test
@@ -2198,7 +2188,6 @@ sanitizer-test-osba-planar-hoa3-ism4:

coverage-merge:
  extends:
    - .rules-main-scheduled
    - .test-job-linux-needs-testv-dir
  tags:
    - ivas-linux-fast