ci: Port from only: to rules
authorNicolas Dufresne <nicolas.dufresne@collabora.com>
Tue, 17 Mar 2020 15:51:32 +0000 (11:51 -0400)
committerNicolas Dufresne <nicolas.dufresne@collabora.com>
Tue, 17 Mar 2020 15:53:36 +0000 (11:53 -0400)
This fixed CI breakage introduced by gst-ci!247

.gitlab-ci.yml

index d4bf180..9169011 100644 (file)
@@ -1,50 +1,43 @@
 include: "https://gitlab.freedesktop.org/gstreamer/gst-ci/raw/master/gitlab/ci_template.yml"
 
+.local-rules: &local-rules
+  rules:
+    - changes:
+      - validate/launcher/
+
 # Run valgrind if we changed the check.py testsuite
 local valgrind core:
   extends: '.valgrind fedora x86_64'
   variables:
     TEST_SUITE: "check.gstreamer\\..*"
-  only:
-    changes:
-      - validate/launcher/
+  <<: *local-rules
 
 local valgrind base:
   extends: '.valgrind fedora x86_64'
   variables:
     TEST_SUITE: "check.gst-plugins-base\\..*"
-  only:
-    changes:
-      - validate/launcher/
+  <<: *local-rules
 
 local valgrind good:
   extends: '.valgrind fedora x86_64'
   variables:
     TEST_SUITE: "check.gst-plugins-good\\..*"
-  only:
-    changes:
-      - validate/launcher/
+  <<: *local-rules
 
 local valgrind ugly:
   extends: '.valgrind fedora x86_64'
   variables:
     TEST_SUITE: "check.gst-plugins-ugly\\..*"
-  only:
-    changes:
-      - validate/launcher/
+  <<: *local-rules
 
 local valgrind bad:
   extends: '.valgrind fedora x86_64'
   variables:
     TEST_SUITE: "check.gst-plugins-bad\\..*"
-  only:
-    changes:
-      - validate/launcher/
+  <<: *local-rules
 
 local valgrind ges:
   extends: '.valgrind fedora x86_64'
   variables:
     TEST_SUITE: "check.gst-editing-services\\..*"
-  only:
-    changes:
-      - validate/launcher/
\ No newline at end of file
+  <<: *local-rules