[commit: ghc] master: circleci: ignore gitlab branches for all jobs in the validate workflow (d7cb230)

git at git.haskell.org git at git.haskell.org
Tue Dec 11 23:21:33 UTC 2018


Repository : ssh://git@git.haskell.org/ghc

On branch  : master
Link       : http://ghc.haskell.org/trac/ghc/changeset/d7cb230ad8784ff9cacc6f7734ae71e8da72c93b/ghc

>---------------------------------------------------------------

commit d7cb230ad8784ff9cacc6f7734ae71e8da72c93b
Author: Alp Mestanogullari <alpmestan at gmail.com>
Date:   Tue Dec 11 13:11:46 2018 -0500

    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


>---------------------------------------------------------------

d7cb230ad8784ff9cacc6f7734ae71e8da72c93b
 .circleci/config.yml | 39 ++++++++++++++++++++++++++-------------
 1 file changed, 26 insertions(+), 13 deletions(-)

diff --git a/.circleci/config.yml b/.circleci/config.yml
index 5bf0336..d455940 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:



More information about the ghc-commits mailing list