From daba4d789fc673bc8fd8bdc43493b2c751392bb7 Mon Sep 17 00:00:00 2001 From: Amir Zarrinkafsh Date: Fri, 20 Mar 2020 14:03:50 +1100 Subject: [PATCH] [Buildkite] Optimise pipeline for deployments to master (#756) Prior to this change all PR's which are merged into master would result in another run of the Unit and Integration testing. This is not necessary because all steps have to pass for a PR to be accepted in to master, this will save significant time for deployments to master and reduce overall load to the Buildkite workers. --- .buildkite/pipeline.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.buildkite/pipeline.sh b/.buildkite/pipeline.sh index 7afe91f6f..8eee27cfe 100755 --- a/.buildkite/pipeline.sh +++ b/.buildkite/pipeline.sh @@ -22,7 +22,7 @@ env: steps: - label: ":hammer_and_wrench: Unit Test" command: "authelia-scripts --log-level debug ci" - if: build.env("CI_DOCS_BYPASS") != "true" + if: build.branch != "master" && build.env("CI_DOCS_BYPASS") != "true" - wait: if: build.env("CI_DOCS_BYPASS") != "true" @@ -33,11 +33,11 @@ steps: if: build.env("CI_DOCS_BYPASS") != "true" - wait: - if: build.env("CI_DOCS_BYPASS") != "true" + if: build.branch != "master" && build.env("CI_DOCS_BYPASS") != "true" - label: ":chrome: Integration Tests" command: ".buildkite/steps/e2etests.sh | buildkite-agent pipeline upload" depends_on: - "build-docker-amd64" - if: build.env("CI_DOCS_BYPASS") != "true" + if: build.branch != "master" && build.env("CI_DOCS_BYPASS") != "true" EOF \ No newline at end of file