aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoshua M. Boniface <joshua@boniface.me>2020-07-06 22:12:39 -0400
committerJoshua M. Boniface <joshua@boniface.me>2020-07-06 22:12:39 -0400
commitaab79ef3464f749ea12d361b94fc2d46a9613f1c (patch)
tree2943f8e3d34f7a69056e6c72a689fafd203bf93c
parent3e53eb1cdeeef57d82a691d38c85e250a28e22ba (diff)
Add conditionals to root YAML definition
Prevents running builds (that get skipped) in PR CI, and prevents running tests (which are irrelevant) in Merge CI.
-rw-r--r--.ci/azure-pipelines.yml4
1 files changed, 4 insertions, 0 deletions
diff --git a/.ci/azure-pipelines.yml b/.ci/azure-pipelines.yml
index c9013b3b8..0a17e97a1 100644
--- a/.ci/azure-pipelines.yml
+++ b/.ci/azure-pipelines.yml
@@ -16,11 +16,13 @@ trigger:
jobs:
- template: azure-pipelines-main.yml
+ condition: ! or(startsWith(variables['Build.SourceBranch'], 'refs/tags'), startsWith(variables['Build.SourceBranch'], 'refs/heads/master'))
parameters:
LinuxImage: 'ubuntu-latest'
RestoreBuildProjects: $(RestoreBuildProjects)
- template: azure-pipelines-test.yml
+ condition: ! or(startsWith(variables['Build.SourceBranch'], 'refs/tags'), startsWith(variables['Build.SourceBranch'], 'refs/heads/master'))
parameters:
ImageNames:
Linux: 'ubuntu-latest'
@@ -28,6 +30,7 @@ jobs:
macOS: 'macos-latest'
- template: azure-pipelines-abi.yml
+ condition: ! or(startsWith(variables['Build.SourceBranch'], 'refs/tags'), startsWith(variables['Build.SourceBranch'], 'refs/heads/master'))
parameters:
Packages:
Naming:
@@ -45,3 +48,4 @@ jobs:
LinuxImage: 'ubuntu-latest'
- template: azure-pipelines-package.yml
+ condition: or(startsWith(variables['Build.SourceBranch'], 'refs/tags'), startsWith(variables['Build.SourceBranch'], 'refs/heads/master'))