summaryrefslogtreecommitdiffstats
path: root/.gitlab/rules.yml
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2020-09-30 18:28:21 (GMT)
committerBrad King <brad.king@kitware.com>2020-09-30 18:29:20 (GMT)
commita7afd8d3b0cd028c5cf85f7de6fbbc5e7605e863 (patch)
treec1456e4d321b5f16d57004351784072e98ba65e4 /.gitlab/rules.yml
parentd91c3e33cbf9592f90f65bd7d990a8b54ad140d1 (diff)
downloadCMake-a7afd8d3b0cd028c5cf85f7de6fbbc5e7605e863.zip
CMake-a7afd8d3b0cd028c5cf85f7de6fbbc5e7605e863.tar.gz
CMake-a7afd8d3b0cd028c5cf85f7de6fbbc5e7605e863.tar.bz2
gitlab-ci: use separate rules for dependent jobs
Diffstat (limited to '.gitlab/rules.yml')
-rw-r--r--.gitlab/rules.yml10
1 files changed, 10 insertions, 0 deletions
diff --git a/.gitlab/rules.yml b/.gitlab/rules.yml
index 1803e79..87f8989 100644
--- a/.gitlab/rules.yml
+++ b/.gitlab/rules.yml
@@ -21,6 +21,16 @@
when: on_success
- when: never
+.run_dependent:
+ rules:
+ - if: '$CMAKE_CI_PACKAGE == "true"'
+ when: never
+ - 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"'