diff options
author | SZEDER Gábor <szeder.dev@gmail.com> | 2017-12-31 11:12:04 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2018-01-02 11:25:57 -0800 |
commit | b4a2fdc9bdc87fc8bd62e8bf7890482c590e558c (patch) | |
tree | 138190df97ceea836091bba46d7647b130bec195 /ci/lib-travisci.sh | |
parent | 495ea6cd41216f16dfd5051e456fd86082d0593d (diff) | |
download | git-b4a2fdc9bdc87fc8bd62e8bf7890482c590e558c.tar.gz |
travis-ci: create the cache directory early in the build process
It seems that Travis CI creates the cache directory for us anyway,
even when a previous cache doesn't exist for the current build job.
Alas, this behavior is not explicitly documented, therefore we don't
rely on it and create the cache directory ourselves in those build
jobs that read/write cached data (currently only the prove state).
In the following commit we'll start to cache additional data in every
build job, and will access the cache much earlier in the build
process.
Therefore move creating the cache directory to 'ci/lib-travisci.sh' to
make sure that it exists at the very beginning of every build job.
Signed-off-by: SZEDER Gábor <szeder.dev@gmail.com>
Reviewed-by: Lars Schneider <larsxschneider@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'ci/lib-travisci.sh')
-rwxr-xr-x | ci/lib-travisci.sh | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ci/lib-travisci.sh b/ci/lib-travisci.sh index 9d379db8a0..197aa14c11 100755 --- a/ci/lib-travisci.sh +++ b/ci/lib-travisci.sh @@ -27,6 +27,8 @@ skip_branch_tip_with_tag () { # and installing dependencies. set -ex +mkdir -p "$HOME/travis-cache" + skip_branch_tip_with_tag if test -z "$jobname" |