]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
use same filters for each job
authorDylan William Hardison <dylan@hardison.net>
Mon, 2 Oct 2017 19:59:51 +0000 (15:59 -0400)
committerDylan William Hardison <dylan@hardison.net>
Mon, 2 Oct 2017 19:59:51 +0000 (15:59 -0400)
.circleci/config.yml

index a56f41c7e414406752ce0ff9a6af93f4b5949ec9..f25439d1e9192bbc2cbba18dc7358dcfb3a4ff62 100644 (file)
@@ -5,6 +5,17 @@
 
 version: 2
 
+standard_filters: &standard_filters
+  branches:
+    only:
+      - master
+      - development
+      - production
+  tags:
+    only:
+      - /release-[0-9]{6}\.[0-9]+/
+      - /test-[a-zA-Z0-9_-]+/
+
 defaults:
   bmo_slim_image: &bmo_slim_image
     image: mozillabteam/bmo-slim:20170927.1
@@ -159,28 +170,23 @@ workflows:
   version: 2
   main:
     jobs:
-      - test_sanity
+      - test_sanity:
+          filters: *standard_filters
       - test_bmo:
+          filters: *standard_filters
           requires:
             - test_sanity
       - test_webservices:
+          filters: *standard_filters
           requires:
             - test_sanity
       - test_selenium:
+          filters: *standard_filters
           requires:
             - test_sanity
       - build:
+          filters: *standard_filters
           requires:
             - test_sanity
             - test_bmo
-            - test_webservices
-          filters:
-            branches:
-              only:
-                - master
-                - development
-                - production
-            tags:
-              only:
-                - /release-[0-9]{6}\.[0-9]+/
-                - /test-[a-zA-Z0-9_-]+/
\ No newline at end of file
+            - test_webservices
\ No newline at end of file