path: root/ci
diff options
authorSZEDER Gábor <>2017-12-31 10:12:04 (GMT)
committerJunio C Hamano <>2018-01-02 19:25:57 (GMT)
commitb4a2fdc9bdc87fc8bd62e8bf7890482c590e558c (patch)
tree138190df97ceea836091bba46d7647b130bec195 /ci
parent495ea6cd41216f16dfd5051e456fd86082d0593d (diff)
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/' to make sure that it exists at the very beginning of every build job. Signed-off-by: SZEDER Gábor <> Reviewed-by: Lars Schneider <> Signed-off-by: Junio C Hamano <>
Diffstat (limited to 'ci')
2 files changed, 2 insertions, 1 deletions
diff --git a/ci/ b/ci/
index 9d379db..197aa14 100755
--- a/ci/
+++ b/ci/
@@ -27,6 +27,8 @@ skip_branch_tip_with_tag () {
# and installing dependencies.
set -ex
+mkdir -p "$HOME/travis-cache"
if test -z "$jobname"
diff --git a/ci/ b/ci/
index f0c743d..ccdfc2b 100755
--- a/ci/
+++ b/ci/
@@ -5,6 +5,5 @@
. ${0%/*}/
-mkdir -p $HOME/travis-cache
ln -s $HOME/travis-cache/.prove t/.prove
make --quiet test