aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar MarkKoz <[email protected]>2019-06-30 14:46:32 -0700
committerGravatar MarkKoz <[email protected]>2019-06-30 15:24:28 -0700
commit01cafe54f21a9a99f14b34751a2b4bcd8cb358a5 (patch)
treeedfbf10dbf5aaa6e5f2833ea8c4c4c2582572858
parentCI: build the base image if the venv needs to be build (diff)
CI: don't run the build job if nothing needs to be built
Resolve #26
-rw-r--r--azure-pipelines.yml9
1 files changed, 9 insertions, 0 deletions
diff --git a/azure-pipelines.yml b/azure-pipelines.yml
index 2c92594..8917306 100644
--- a/azure-pipelines.yml
+++ b/azure-pipelines.yml
@@ -89,6 +89,15 @@ jobs:
- job: build
displayName: 'Build'
+ condition: >
+ and(
+ succeeded(),
+ or(
+ ne(variables['Build.Reason'], 'PullRequest'),
+ eq(coalesce(dependencies.test.outputs['check.BASE_CHANGED'], True), True),
+ eq(coalesce(dependencies.test.outputs['check.VENV_CHANGED'], True), True)
+ )
+ )
dependsOn: test
variables: