summaryrefslogtreecommitdiff
path: root/.travis.yml
diff options
context:
space:
mode:
authorLars Schneider <larsxschneider@gmail.com>2017-05-05 17:40:52 +0200
committerJunio C Hamano <gitster@pobox.com>2017-05-11 18:44:54 +0900
commit3ae72a3acaac8b79653d67cf1aae94f61efd41c7 (patch)
tree444e58a8b8040db139353164e0b6aa308ea27d0c /.travis.yml
parent0d75bfe67bfd7538c0188f862fb4770f09620b8d (diff)
downloadgit-3ae72a3acaac8b79653d67cf1aae94f61efd41c7.tar.gz
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>
Diffstat (limited to '.travis.yml')
-rw-r--r--.travis.yml8
1 files changed, 5 insertions, 3 deletions
diff --git a/.travis.yml b/.travis.yml
index 1b32c98f2c..f96f09ce9d 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -134,12 +134,14 @@ before_install:
p4 -V | grep Rev.;
echo "$(tput setaf 6)Git-LFS Version$(tput sgr0)";
git-lfs version;
- mkdir -p $HOME/travis-cache;
- ln -s $HOME/travis-cache/.prove t/.prove;
before_script: make --jobs=2
-script: make --quiet test
+script:
+ - >
+ mkdir -p $HOME/travis-cache;
+ ln -s $HOME/travis-cache/.prove t/.prove;
+ make --quiet test;
after_failure:
- >