ci: Run tests post merge
authorThibault Saunier <tsaunier@igalia.com>
Wed, 13 Oct 2021 01:35:38 +0000 (22:35 -0300)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Wed, 13 Oct 2021 18:40:51 +0000 (18:40 +0000)
This will make tracking new races much easier

Mark other jobs as manual when pipeline is running on master

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1129>

.gitlab-ci.yml

index bac16dc..60a5bc0 100644 (file)
@@ -118,10 +118,8 @@ trigger:
     - if: '$CI_MERGE_REQUEST_ASSIGNEES != "gstreamer-merge-bot"'
       when: 'manual'
       allow_failure: false
-    # If this matches, it means the pipeline is running against either the main
-    # or a stable branch, so make it manual
+    # Alway run tests post merged
     - if: '$CI_COMMIT_BRANCH == $GST_UPSTREAM_BRANCH'
-      when: 'manual'
 
 .fedora image:
   variables:
@@ -345,6 +343,10 @@ gst indent:
   rules:
     - changes:
         *modules_changes
+    # If this matches, it means the pipeline is running against either the main
+    # or a stable branch, so make it manual
+    - if: '$CI_COMMIT_BRANCH == $GST_UPSTREAM_BRANCH'
+      when: manual
 
 build nodebug fedora x86_64:
   extends:
@@ -393,6 +395,10 @@ build clang fedora x86_64:
   rules:
     - changes:
         *modules_changes
+    # If this matches, it means the pipeline is running against either the main
+    # or a stable branch, so make it manual
+    - if: '$CI_COMMIT_BRANCH == $GST_UPSTREAM_BRANCH'
+      when: manual
   before_script:
     - ci/scripts/handle-subprojects-cache.py subprojects/
   script:
@@ -542,6 +548,10 @@ gstreamer-full:
       - "*"
       - scripts/*
       - ci/**/*
+    # If this matches, it means the pipeline is running against either the main
+    # or a stable branch, so make it manual
+    - if: '$CI_COMMIT_BRANCH == $GST_UPSTREAM_BRANCH'
+      when: manual
 
   script:
   - *build
@@ -744,6 +754,8 @@ build documentation:
       - subprojects/gstreamer/**/*
       - subprojects/gstreamer-vaapi/**/*
       - subprojects/gst-rtsp-server/**/*
+    - if: '$CI_COMMIT_BRANCH == $GST_UPSTREAM_BRANCH'
+      when: never
 
 # FIXME: Using trigger: causes permission issues, workaround using old REST API.
 # https://gitlab.com/gitlab-org/gitlab/-/issues/341737
@@ -772,3 +784,5 @@ cerbero trigger:
       - subprojects/gstreamer/**/*
       - subprojects/gst-rtsp-server/**/*
       - subprojects/gst-examples/**/*
+    - if: '$CI_COMMIT_BRANCH == $GST_UPSTREAM_BRANCH'
+      when: never