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
This commit is contained in:
Mike Blumenkrantz 2018-07-12 10:05:09 -04:00 committed by Stefan Schmidt
parent 322fe28951
commit a4afe4b300
1 changed files with 8 additions and 1 deletions

View File

@ -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: