Mesa (master): gitlab-ci: Only run the pipeline if any files affecting it have changed
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Tue Oct 29 16:02:45 UTC 2019
Module: Mesa
Branch: master
Commit: 2a38fc1027ea0a2a32223900c0cda4533eaa69f2
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=2a38fc1027ea0a2a32223900c0cda4533eaa69f2
Author: Michel Dänzer <mdaenzer at redhat.com>
Date: Fri Oct 25 18:59:56 2019 +0200
gitlab-ci: Only run the pipeline if any files affecting it have changed
E.g. documentation-only changes cannot affect the outcome of the
pipeline, so don't waste resources on running it.
The thing we need to be careful about here is that the container stage
jobs must always run if any later stage jobs using the corresponding
docker images run. We're currently using the same .ci-run-policy
template for all jobs, so this is trivially true.
v2:
* Add bin/ and common.py (Eric Engestrom)
Acked-by: Alyssa Rosenzweig <alyssa.rosenzweig at collabora.com> # v1
Reviewed-by: Eric Engestrom <eric.engestrom at intel.com>
---
.gitlab-ci.yml | 24 +++++++++++++++++++++---
1 file changed, 21 insertions(+), 3 deletions(-)
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 78793fc7b0c..92097c13565 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -40,9 +40,27 @@ stages:
# When to automatically run the CI
.ci-run-policy:
only:
- - branches at mesa/mesa
- - merge_requests
- - /^ci([-/].*)?$/
+ refs:
+ - branches at mesa/mesa
+ - merge_requests
+ - /^ci([-/].*)?$/
+ changes:
+ - VERSION
+ - bin/**/*
+ # GitLab CI
+ - .gitlab-ci.yml
+ - .gitlab-ci/**/*
+ # Meson
+ - meson*
+ - build-support/**/*
+ - subprojects/**/*
+ # SCons
+ - SConstruct
+ - scons/**/*
+ - common.py
+ # Source code
+ - include/**/*
+ - src/**/*
retry:
max: 2
when:
More information about the mesa-commit
mailing list