From 7328c3fe8624ce7b7d0ed552d91ec05e3cc018f4 Mon Sep 17 00:00:00 2001 From: Bryan Boreham Date: Fri, 6 Jan 2017 10:54:13 +0000 Subject: [PATCH] Comment about full build on first push --- bin/circle-dependencies-post | 3 +++ 1 file changed, 3 insertions(+) diff --git a/bin/circle-dependencies-post b/bin/circle-dependencies-post index 1defb749..8f26bb0f 100755 --- a/bin/circle-dependencies-post +++ b/bin/circle-dependencies-post @@ -4,6 +4,9 @@ set -e echo "TEST_AND_PUBLISH=1" > "$STATE" +# Avoid doing a full build if we can. Note if the PR doesn't exist +# when the build is kicked off, we can't run this check so we do a +# full build. Subsequent pushes to the same branch will have the desired behaviour if [ -n "$CI_PULL_REQUEST" -a "$CI_PULL_REQUEST" = "$CI_PULL_REQUESTS" ] ; then if PR=$(echo "$CI_PULL_REQUEST" | grep -oP '(?<=^https://github.com/weaveworks/weave/pull/)[0-9]+$') ; then echo "GH_PR=$PR" >> "$STATE"