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 <larsxschneider@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Lars Schneider committed
May 5, 2017 at 17:40 UTC
3ae72a3acaac8b79653d67cf1aae94f61efd41c7
1 file changed
+5
-3
.travis.yml
+5
-3
@@ -134,12 +134,14 @@ before_install:
134
p4 -V | grep Rev.;
135
echo "$(tput setaf 6)Git-LFS Version$(tput sgr0)";
136
git-lfs version;
137
- mkdir -p $HOME/travis-cache;
138
- ln -s $HOME/travis-cache/.prove t/.prove;
137
138
before_script: make --jobs=2
139
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;
145
146
after_failure:
147
- >