summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlp Mestanogullari <alpmestan@gmail.com>2018-12-11 13:11:46 -0500
committerBen Gamari <ben@smart-cactus.org>2018-12-11 13:14:20 -0500
commitd7cb230ad8784ff9cacc6f7734ae71e8da72c93b (patch)
tree17a24ed0e41d9af0109298c6501cbda207d15b50
parenta5e76a073afc8ffdde274a4cb3d09847f2d35be9 (diff)
downloadhaskell-d7cb230ad8784ff9cacc6f7734ae71e8da72c93b.tar.gz
circleci: ignore gitlab branches for all jobs in the validate workflow
Our previous attempt ended up breaking the CircleCI config, but this one has been tested, see: https://circleci.com/gh/ghc/ghc/tree/alp%2Fcircleci%2Fignore-gitlab-branches which shows the builds getting triggered correctly. I also pushed the same branch under 'gitlab/alp/test', and that didn't trigger any build, as desired. Reviewers: bgamari Subscribers: rwbarton, carter Differential Revision: https://phabricator.haskell.org/D5429
-rw-r--r--.circleci/config.yml39
1 files changed, 26 insertions, 13 deletions
diff --git a/.circleci/config.yml b/.circleci/config.yml
index 5bf0336ebd..d455940f7b 100644
--- a/.circleci/config.yml
+++ b/.circleci/config.yml
@@ -102,10 +102,12 @@ aliases:
- &store_bindist
store_artifacts:
path: ghc.tar.xz
- - &trigger_on_tags
- filters:
- tags:
- only: /^ghc-.*/
+ - &only_release_tags
+ tags:
+ only: /^ghc-.*/
+ - &ignore_gitlab_branches
+ branches:
+ ignore: /^gitlab\/.*/
jobs:
"validate-x86_64-freebsd":
@@ -434,23 +436,34 @@ workflows:
validate:
jobs:
- validate-x86_64-linux-deb8:
- *trigger_on_tags
+ filters:
+ <<: [*only_release_tags, *ignore_gitlab_branches]
# FreeBSD disabled: https://github.com/haskell/unix/issues/102
# - validate-x86_64-freebsd
- validate-x86_64-darwin:
- *trigger_on_tags
- - validate-x86_64-linux-deb8-llvm
+ filters:
+ <<: [*only_release_tags, *ignore_gitlab_branches]
+ - validate-x86_64-linux-deb8-llvm:
+ filters:
+ <<: *ignore_gitlab_branches
- validate-i386-linux-deb8:
- *trigger_on_tags
+ filters:
+ <<: [*only_release_tags, *ignore_gitlab_branches]
- validate-x86_64-linux-deb9:
- *trigger_on_tags
+ filters:
+ <<: [*only_release_tags, *ignore_gitlab_branches]
- validate-i386-linux-deb9:
- *trigger_on_tags
+ filters:
+ <<: [*only_release_tags, *ignore_gitlab_branches]
- validate-x86_64-linux-centos7:
- *trigger_on_tags
- - validate-hadrian-x86_64-linux-deb8
+ filters:
+ <<: [*only_release_tags, *ignore_gitlab_branches]
+ - validate-hadrian-x86_64-linux-deb8:
+ filters:
+ <<: *ignore_gitlab_branches
- validate-x86_64-linux-fedora27:
- *trigger_on_tags
+ filters:
+ <<: [*only_release_tags, *ignore_gitlab_branches]
nightly:
triggers: