From d33cabe68a4f16697bcb67f0963633a09d649e1d Mon Sep 17 00:00:00 2001 From: Zach Mullen Date: Tue, 14 Aug 2018 15:17:50 -0400 Subject: [PATCH 1/2] Cache ExternalData directory --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index d1a52908dd..3fdf24a315 100644 --- a/.travis.yml +++ b/.travis.yml @@ -34,7 +34,7 @@ cache: directories: - node_modules - "$HOME/cache" - - "$HOME/_build/ExternalData" + - "$TRAVIS_BUILD_DIR/_build/ExternalData" before_install: # Start xvfb with a specific resolution and pixel depth From 4967290db9ae68df1b559e81ce4113058f500629 Mon Sep 17 00:00:00 2001 From: Zach Mullen Date: Tue, 14 Aug 2018 15:26:33 -0400 Subject: [PATCH 2/2] Allow build dir to already exist This is necessary due to caching a subset of it --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 3fdf24a315..d9830ad135 100644 --- a/.travis.yml +++ b/.travis.yml @@ -63,7 +63,7 @@ before_script: script: - npm run build - npm run docs - - mkdir _build + - mkdir -p _build - ctest -S cmake/travis_build.cmake -VV || true - if [ -f _build/test_failed ] ; then false ; fi # Build the website to ensure that it will pass