diff options
author | 2019-06-30 14:46:32 -0700 | |
---|---|---|
committer | 2019-06-30 15:24:28 -0700 | |
commit | 01cafe54f21a9a99f14b34751a2b4bcd8cb358a5 (patch) | |
tree | edfbf10dbf5aaa6e5f2833ea8c4c4c2582572858 | |
parent | CI: 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.yml | 9 |
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: |