Skip to content

Commit 3ae72a3

Browse files
larsxschneidergitster
authored andcommitted
travis-ci: setup "prove cache" in "script" step
The command that made the "prove cache" persistent across builds was executed in the "before_install" step. Consequently, every job that wanted to make use of the cache had to run this step. The "prove cache" is only used in the "script" step for the "make test" command. Therefore, we should configure the "prove cache" in this step. This change is useful for a subsequent patch that adds a job which does not need the "before_install" step but wants to run the "script" step to execute the tests. Signed-off-by: Lars Schneider <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 0d75bfe commit 3ae72a3

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

.travis.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -134,12 +134,14 @@ before_install:
134134
p4 -V | grep Rev.;
135135
echo "$(tput setaf 6)Git-LFS Version$(tput sgr0)";
136136
git-lfs version;
137-
mkdir -p $HOME/travis-cache;
138-
ln -s $HOME/travis-cache/.prove t/.prove;
139137
140138
before_script: make --jobs=2
141139

142-
script: make --quiet test
140+
script:
141+
- >
142+
mkdir -p $HOME/travis-cache;
143+
ln -s $HOME/travis-cache/.prove t/.prove;
144+
make --quiet test;
143145
144146
after_failure:
145147
- >

0 commit comments

Comments
 (0)