summaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
diff options
context:
space:
mode:
authorCarlos Garnacho <carlosg@gnome.org>2022-02-19 10:54:39 +0100
committerCarlos Garnacho <carlosg@gnome.org>2022-03-08 11:31:15 +0100
commit3cf7b1613fb51e0558cfd3d088063f0ca55e0524 (patch)
tree33581ba0d48af8d53d79ca421b2ad4dec91fddae /.gitlab-ci.yml
parent56cf628e473a4b4c125dd7750be2b0572779e1e8 (diff)
downloadtracker-3cf7b1613fb51e0558cfd3d088063f0ca55e0524.tar.gz
ci: Enable detached merge request pipelines
The check jobs are relying on environment variables that are only set on merge request pipelines, so they've been kinda ineffective so far. Enable the detached merge request pipelines as documented at https://docs.gitlab.com/ee/ci/pipelines/merge_request_pipelines.html so that these work. Since we want all jobs to run in merge pipelines, using "workflow" is good for us.
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r--.gitlab-ci.yml5
1 files changed, 5 insertions, 0 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 0db9745f6..c62329ad4 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -23,6 +23,11 @@ stages:
- analysis
- website
+workflow:
+ rules:
+ - if: $CI_PIPELINE_SOURCE == 'merge_request_event'
+ - if: $CI_PIPELINE_SOURCE == 'push'
+
.check-template: &check
extends:
- .fdo.ci-fairy