summaryrefslogtreecommitdiff
path: root/ci/print-test-failures.sh
diff options
context:
space:
mode:
authorJohannes Schindelin <johannes.schindelin@gmx.de>2019-01-27 23:26:49 (GMT)
committerJunio C Hamano <gitster@pobox.com>2019-01-28 18:34:28 (GMT)
commit4096a98d79953d9749b81d2ecdcc600003d5c29a (patch)
tree6cdff4aa05fee0264e72bfa09e025e2ce59b8640 /ci/print-test-failures.sh
parent16a465bc018d09e9d7bbbdc5f40a7fb99c21f8ef (diff)
downloadgit-4096a98d79953d9749b81d2ecdcc600003d5c29a.zip
git-4096a98d79953d9749b81d2ecdcc600003d5c29a.tar.gz
git-4096a98d79953d9749b81d2ecdcc600003d5c29a.tar.bz2
travis: fix skipping tagged releases
When building a PR, TRAVIS_BRANCH refers to the *target branch*. Therefore, if a PR targets `master`, and `master` happened to be tagged, we skipped the build by mistake. Fix this by using TRAVIS_PULL_REQUEST_BRANCH (i.e. the *source branch*) when available, falling back to TRAVIS_BRANCH (i.e. for CI builds, also known as "push builds"). Let's give it a new variable name, too: CI_BRANCH (as it is different from TRAVIS_BRANCH). This also prepares for the upcoming patches which will make our ci/* code a bit more independent from Travis and open it to other CI systems (in particular to Azure Pipelines). Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'ci/print-test-failures.sh')
0 files changed, 0 insertions, 0 deletions