git/ci
SZEDER Gábor e3371e9260 travis-ci: move setting environment variables to 'ci/lib-travisci.sh'
Our '.travis.yml's 'env.global' section sets a bunch of environment
variables for all build jobs, though none of them actually affects all
build jobs.  It's convenient for us, and in most cases it works just
fine, because irrelevant environment variables are simply ignored.

However, $GIT_SKIP_TESTS is an exception: it tells the test harness to
skip the two test scripts that are prone to occasional failures on
OSX, but as it's set for all build jobs those tests are not run in any
of the build jobs that are capable to run them reliably, either.

Therefore $GIT_SKIP_TESTS should only be set in the OSX build jobs,
but those build jobs are included in the build matrix implicitly (i.e.
by combining the matrix keys 'os' and 'compiler'), and there is no way
to set an environment variable only for a subset of those implicit
build jobs.  (Unless we were to add new scriptlets to '.travis.yml',
which is exactly the opposite direction that we took with commit
657343a60 (travis-ci: move Travis CI code into dedicated scripts,
2017-09-10)).

So move setting $GIT_SKIP_TESTS to 'ci/lib-travisci.sh', where it can
trivially be set only for the OSX build jobs.

Furthermore, move setting all other environment variables from
'.travis.yml' to 'ci/lib-travisci.sh', too, because a couple of
environment variables are already set there, and this way all
environment variables will be set in the same place.  All the logic
controlling our builds is already in the 'ci/*' scripts anyway, so
there is really no good reason to keep the environment variables
separately.

Signed-off-by: SZEDER Gábor <szeder.dev@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
2017-12-12 12:58:27 -08:00
..
install-dependencies.sh travis-ci: introduce a $jobname variable for 'ci/*' scripts 2017-12-12 12:58:25 -08:00
lib-travisci.sh travis-ci: move setting environment variables to 'ci/lib-travisci.sh' 2017-12-12 12:58:27 -08:00
print-test-failures.sh travis: dedent a few scripts that are indented overly deeply 2017-09-11 10:18:29 +09:00
run-build.sh travis-ci: move Travis CI code into dedicated scripts 2017-09-11 09:54:08 +09:00
run-linux32-build.sh Travis: also test on 32-bit Linux 2017-03-06 11:19:09 -08:00
run-linux32-docker.sh travis-ci: move Travis CI code into dedicated scripts 2017-09-11 09:54:08 +09:00
run-static-analysis.sh travis-ci: move Travis CI code into dedicated scripts 2017-09-11 09:54:08 +09:00
run-tests.sh travis-ci: move Travis CI code into dedicated scripts 2017-09-11 09:54:08 +09:00
run-windows-build.sh travis-ci: move Travis CI code into dedicated scripts 2017-09-11 09:54:08 +09:00
test-documentation.sh travis-ci: move Travis CI code into dedicated scripts 2017-09-11 09:54:08 +09:00