git/ci
Johannes Schindelin 4096a98d79 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>
2019-01-28 10:34:28 -08:00
..
util travis-ci: include the trash directories of failed tests in the trace log 2018-08-01 09:59:36 -07:00
install-dependencies.sh travis-ci: install packages in 'ci/install-dependencies.sh' 2018-11-02 11:28:19 +09:00
lib-travisci.sh travis: fix skipping tagged releases 2019-01-28 10:34:28 -08:00
print-test-failures.sh travis-ci: include the trash directories of failed tests in the trace log 2018-08-01 09:59:36 -07:00
run-build-and-tests.sh ci: add optional test variables 2018-10-19 09:21:28 +09:00
run-linux32-build.sh travis-ci: don't fail if user already exists on 32 bit Linux build job 2018-01-30 13:27:19 -08:00
run-linux32-docker.sh travis-ci: don't run the test suite as root in the 32 bit Linux build 2018-01-30 13:27:19 -08:00
run-static-analysis.sh travis-ci: fail if Coccinelle static analysis found something to transform 2018-07-23 12:08:38 -07:00
run-windows-build.sh travis-ci: record and skip successfully built trees 2018-01-02 11:25:58 -08:00
test-documentation.sh travis-ci: check that all build artifacts are .gitignore-d 2018-01-03 13:29:19 -08:00