git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH v1 1/2] travis-ci: setup "prove cache" in "script" step

From
Lars Schneider <larsxschneider@gmail.com>
Date
May 5, 2017, 15:40 UTC
Message-ID
<20170505154053.58128-2-larsxschneider@gmail.com>
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
Previous: Lars SchneiderNext: Ævar Arnfjörð Bjarmason
Message 2 of 11 in “run GETTEXT_POISON on TravisCI”
  1. 0/2 run GETTEXT_POISON on TravisCILars Schneider, May 5, 2017
  2. 1/2 travis-ci: setup "prove cache" in "script" stepLars Schneider, May 5, 2017
  3. Ævar Arnfjörð BjarmasonMay 5, 2017
  4. 2/2 travis-ci: add job to run tests with GETTEXT_POISONLars Schneider, May 5, 2017
  5. Jonathan NiederMay 5, 2017
  6. t7406: fix i18n expectation of error messageStefan Beller, May 5, 2017
  7. Ævar Arnfjörð BjarmasonMay 5, 2017
  8. Stefan BellerMay 5, 2017
  9. Johannes SixtMay 5, 2017
  10. tests: fix tests broken under GETTEXT_POISON=YesPleaseÆvar Arnfjörð Bjarmason, May 5, 2017
  11. Junio C HamanoMay 8, 2017

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.