From a4afe4b3009b57553455bc8b65205ad5397a185f Mon Sep 17 00:00:00 2001 From: Mike Blumenkrantz Date: Thu, 12 Jul 2018 10:05:09 -0400 Subject: [PATCH] ci: add osx homebrew packages to cache this adds the downloaded homebrew package files to a cache in order to avoid needing to separately download each file at the start of each build not sure we can do better here unless we buy the enterprise-level travis package which allows building with custom osx images which we could pre-install all these dependencies on ref T7096 Differential Revision: https://phab.enlightenment.org/D6610 --- .travis.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 78d5fa4ba5..0840209adb 100644 --- a/.travis.yml +++ b/.travis.yml @@ -66,7 +66,13 @@ matrix: env: DISTRO=Fedora28 CI_BUILD_TYPE=release-ready before_install: - - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then .ci/ci-osx-deps.sh ; fi + - | + if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then + rm -rf $HOME/Library/Caches/Homebrew + rm -rf $HOME/cachedir/Homebrew/Homebrew + mv $HOME/cachedir/Homebrew $HOME/Library/Caches/Homebrew + .ci/ci-osx-deps.sh + fi before_script: - | @@ -116,6 +122,7 @@ before_cache: sudo chown travis:travis $HOME/autom4te.cache else cp config.cache $HOME/cachedir + mv $HOME/Library/Caches/Homebrew $HOME/cachedir/Homebrew fi after_success: