From 8f07c1a2b5ab83197c7605c2306eb32c2c830e8c Mon Sep 17 00:00:00 2001 From: Jon Turney Date: Sun, 4 Jul 2021 15:15:01 +0100 Subject: 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). --- azure-pipelines.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) 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 -- cgit v1.1