Skip to content

Commit b4a2fdc

Browse files
szedergitster
authored andcommitted
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 <[email protected]> Reviewed-by: Lars Schneider <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 495ea6c commit b4a2fdc

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

ci/lib-travisci.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ skip_branch_tip_with_tag () {
2727
# and installing dependencies.
2828
set -ex
2929

30+
mkdir -p "$HOME/travis-cache"
31+
3032
skip_branch_tip_with_tag
3133

3234
if test -z "$jobname"

ci/run-tests.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,5 @@
55

66
. ${0%/*}/lib-travisci.sh
77

8-
mkdir -p $HOME/travis-cache
98
ln -s $HOME/travis-cache/.prove t/.prove
109
make --quiet test

0 commit comments

Comments
 (0)