ci: Run tests post merge

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>
This commit is contained in:
Thibault Saunier 2021-10-12 22:35:38 -03:00 committed by GStreamer Marge Bot
parent 7a25a4ce02
commit 4c046c9e8a

View file

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