From: Lars Schneider <larsxschneider@gmail.com>
To: git@vger.kernel.org
Cc: gitster@pobox.com, avarab@gmail.com
Subject: [PATCH v1 1/2] travis-ci: setup "prove cache" in "script" step
Date: Fri, 5 May 2017 17:40:52 +0200 [thread overview]
Message-ID: <20170505154053.58128-2-larsxschneider@gmail.com> (raw)
In-Reply-To: <20170505154053.58128-1-larsxschneider@gmail.com>
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>
---
.travis.yml | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/.travis.yml b/.travis.yml
index 48cb00a581..aa03f8eb82 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -135,12 +135,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:
- >
--
2.12.2
next prev parent reply other threads:[~2017-05-05 15:41 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-05-05 15:40 [PATCH v1 0/2] run GETTEXT_POISON on TravisCI Lars Schneider
2017-05-05 15:40 ` Lars Schneider [this message]
2017-05-05 19:26 ` [PATCH v1 1/2] travis-ci: setup "prove cache" in "script" step Ævar Arnfjörð Bjarmason
2017-05-05 15:40 ` [PATCH v1 2/2] travis-ci: add job to run tests with GETTEXT_POISON Lars Schneider
2017-05-05 16:08 ` Jonathan Nieder
2017-05-05 17:38 ` [PATCH] t7406: fix i18n expectation of error message Stefan Beller
2017-05-05 17:50 ` Ævar Arnfjörð Bjarmason
2017-05-05 17:53 ` Stefan Beller
2017-05-05 22:43 ` Johannes Sixt
2017-05-05 18:19 ` [PATCH v2] tests: fix tests broken under GETTEXT_POISON=YesPlease Ævar Arnfjörð Bjarmason
2017-05-08 2:02 ` Junio C Hamano
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20170505154053.58128-2-larsxschneider@gmail.com \
--to=larsxschneider@gmail.com \
--cc=avarab@gmail.com \
--cc=git@vger.kernel.org \
--cc=gitster@pobox.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).