aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJon Turney <jon.turney@dronecode.org.uk>2021-07-04 15:15:01 +0100
committerJussi Pakkanen <jpakkane@gmail.com>2021-07-10 23:12:10 +0300
commit8f07c1a2b5ab83197c7605c2306eb32c2c830e8c (patch)
treeb76cf26be28e343b9f636d18451ed35924d5ff50
parentca6683095d2521f0f166a4ec51583c424f1bcd84 (diff)
downloadmeson-8f07c1a2b5ab83197c7605c2306eb32c2c830e8c.zip
meson-8f07c1a2b5ab83197c7605c2306eb32c2c830e8c.tar.gz
meson-8f07c1a2b5ab83197c7605c2306eb32c2c830e8c.tar.bz2
Add path filter to azure pipelines trigger
This restricts the pipeline from running on 'non-code' pushes and PRs in the same way that GitHub workflows which run project tests are (although the syntax is different, and must be made more explicit as wildcards aren't supported).
-rw-r--r--azure-pipelines.yml22
1 files changed, 22 insertions, 0 deletions
diff --git a/azure-pipelines.yml b/azure-pipelines.yml
index 614f344..ca835c6 100644
--- a/azure-pipelines.yml
+++ b/azure-pipelines.yml
@@ -6,6 +6,28 @@ trigger:
- 'master'
# Release branches
- '0.*'
+ paths:
+ include:
+ - 'mesonbuild'
+ - 'test cases'
+ - 'azure-pipelines.yml'
+ - 'ci/azure-steps.yml'
+ - 'run_project_tests.py'
+ - 'run_tests.py'
+ - 'run_unittests.py'
+pr:
+ branches:
+ include:
+ - '*'
+ paths:
+ include:
+ - 'mesonbuild'
+ - 'test cases'
+ - 'azure-pipelines.yml'
+ - 'ci/azure-steps.yml'
+ - 'run_project_tests.py'
+ - 'run_tests.py'
+ - 'run_unittests.py'
variables:
CI: 1