diff options
author | Marcel Amirault <mamirault@gitlab.com> | 2021-04-07 05:20:30 +0300 |
---|---|---|
committer | Marcel Amirault <mamirault@gitlab.com> | 2021-04-07 05:20:30 +0300 |
commit | 7931bcde06fcf0d0bd164ba8db6c95f6fdbbbc69 (patch) | |
tree | 06adcbeb775c4533a678d0cd289c28730510fc52 /.gitlab-ci.yml | |
parent | 4956a64fc754a1bbbcf0cbc746e35a48e07aa55d (diff) |
Stop site tests from running on review apps
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r-- | .gitlab-ci.yml | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 9999dff0..caa8d707 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -101,6 +101,9 @@ workflow: rules: - if: $CHORES_PIPELINE == "true" when: never + # Don't run site tests for review apps. + - if: '$CI_PIPELINE_SOURCE == "pipeline" || $CI_PIPELINE_SOURCE == "trigger"' + when: never - if: '$CI_PIPELINE_SOURCE == "schedule"' - if: '$CI_MERGE_REQUEST_ID' - if: '$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH' @@ -110,7 +113,7 @@ workflow: rules: - if: $CHORES_PIPELINE == "true" when: never - # Don't deploy to production for trigerred pipelines (usually from `gitlab-org/gitlab`) + # Don't deploy to production for trigerred pipelines (usually review apps) - if: '$CI_PIPELINE_SOURCE == "pipeline" || $CI_PIPELINE_SOURCE == "trigger"' when: never - if: '$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH' @@ -120,7 +123,7 @@ workflow: rules: - if: $CHORES_PIPELINE == "true" when: never - # Don't deploy to production for trigerred pipelines (usually from `gitlab-org/gitlab`) + # Don't deploy to production for trigerred pipelines (usually review apps) - if: '$CI_PIPELINE_SOURCE == "pipeline"|| $CI_PIPELINE_SOURCE == "trigger"' when: never - if: '$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH' |