summaryrefslogtreecommitdiff
path: root/.gitlab/rules.yml
diff options
context:
space:
mode:
Diffstat (limited to '.gitlab/rules.yml')
-rw-r--r--.gitlab/rules.yml31
1 files changed, 31 insertions, 0 deletions
diff --git a/.gitlab/rules.yml b/.gitlab/rules.yml
index 3bb8ae4eba..5ee8333b63 100644
--- a/.gitlab/rules.yml
+++ b/.gitlab/rules.yml
@@ -2,6 +2,13 @@
.run_manually:
rules:
+ - if: '$CMAKE_CI_PACKAGE == "true"'
+ when: never
+ - if: '$CMAKE_CI_NIGHTLY == "true"'
+ when: on_success
+ - if: '($CMAKE_CI_PROJECT_CONTINUOUS_BRANCH != "" && $CI_COMMIT_BRANCH == $CMAKE_CI_PROJECT_CONTINUOUS_BRANCH && $CMAKE_CI_JOB_CONTINUOUS == "true")'
+ when: delayed
+ start_in: 5 minutes
- if: '$CI_MERGE_REQUEST_ID'
when: manual
- if: '$CI_PROJECT_PATH == "cmake/cmake"'
@@ -11,8 +18,32 @@
.run_automatically:
rules:
+ - if: '$CMAKE_CI_PACKAGE == "true"'
+ when: never
+ - if: '$CMAKE_CI_NIGHTLY == "true"'
+ when: on_success
+ - if: '($CMAKE_CI_PROJECT_CONTINUOUS_BRANCH != "" && $CI_COMMIT_BRANCH == $CMAKE_CI_PROJECT_CONTINUOUS_BRANCH && $CMAKE_CI_JOB_CONTINUOUS == "true")'
+ when: on_success
- if: '$CI_MERGE_REQUEST_ID'
when: on_success
- if: '$CI_PROJECT_PATH == "cmake/cmake"'
when: on_success
- when: never
+
+.run_dependent:
+ rules:
+ - if: '$CMAKE_CI_PACKAGE == "true"'
+ when: never
+ - if: '$CMAKE_CI_NIGHTLY == "true"'
+ when: on_success
+ - if: '$CI_MERGE_REQUEST_ID'
+ when: on_success
+ - if: '$CI_PROJECT_PATH == "cmake/cmake"'
+ when: on_success
+ - when: never
+
+.run_only_for_package:
+ rules:
+ - if: '$CMAKE_CI_PACKAGE == "true"'
+ when: on_success
+ - when: never