git/ci
SZEDER Gábor b2cbaa091c travis-ci: don't repeat the path of the cache directory
Some of our 'ci/*' scripts repeat the name or full path of the Travis
CI cache directory, and the following patches will add new places
using that path.

Use a variable to refer to the path of the cache directory instead, so
it's hard-coded only in a single place.

Pay extra attention to the 32 bit Linux build: it runs in a Docker
container, so pass the path of the cache directory from the host to
the container in an environment variable.  Note that an environment
variable passed this way is exported inside the container, therefore
its value is directly available in the 'su' snippet even though that
snippet is single quoted.  Furthermore, use the variable in the
container only if it's been assigned a non-empty value, to prevent
errors when someone is running or debugging the Docker build locally,
because in that case the variable won't be set as there won't be any
Travis CI cache.

Signed-off-by: SZEDER Gábor <szeder.dev@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
2018-01-30 13:27:19 -08:00
..
install-dependencies.sh travis-ci: set GIT_TEST_HTTPD in 'ci/lib-travisci.sh' 2017-12-12 12:58:28 -08:00
lib-travisci.sh travis-ci: don't repeat the path of the cache directory 2018-01-30 13:27:19 -08:00
print-test-failures.sh travis-ci: only print test failures if there are test results available 2017-12-27 12:15:22 -08: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-ci: don't repeat the path of the cache directory 2018-01-30 13:27:19 -08:00
run-linux32-docker.sh travis-ci: don't repeat the path of the cache directory 2018-01-30 13:27:19 -08:00
run-static-analysis.sh travis-ci: record and skip successfully built trees 2018-01-02 11:25:58 -08:00
run-tests.sh travis-ci: don't repeat the path of the cache directory 2018-01-30 13:27:19 -08: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