diff options
author | bunnei <bunneidev@gmail.com> | 2014-12-20 23:21:08 -0500 |
---|---|---|
committer | bunnei <bunneidev@gmail.com> | 2014-12-20 23:21:08 -0500 |
commit | 09a5df31d6e292af2d239f4f5f86251f8c7a21ea (patch) | |
tree | c5825541e19a39bfbfbefc50684001093f261f38 | |
parent | 2e5869c9395c2304cfc43a28bf734c345f845b65 (diff) | |
parent | d261e77c168c3a933458fd1fbfecbc1b983d083b (diff) |
Merge pull request #319 from yuriks/travis-apt-cache
Travis: Enable caching of dependencies
-rw-r--r-- | .travis-deps.sh | 2 | ||||
-rw-r--r-- | .travis.yml | 5 |
2 files changed, 7 insertions, 0 deletions
diff --git a/.travis-deps.sh b/.travis-deps.sh index 8e22a6358..b978e552e 100644 --- a/.travis-deps.sh +++ b/.travis-deps.sh @@ -20,6 +20,8 @@ if [ "$TRAVIS_OS_NAME" = linux -o -z "$TRAVIS_OS_NAME" ]; then curl http://www.cmake.org/files/v2.8/cmake-2.8.11-Linux-i386.tar.gz \ | sudo tar -xz -C /usr/local --strip-components=1 elif [ "$TRAVIS_OS_NAME" = osx ]; then + export HOMEBREW_CACHE="$PWD/.homebrew-cache" + mkdir -p "$HOMEBREW_CACHE" brew tap homebrew/versions brew install qt5 glfw3 pkgconfig fi diff --git a/.travis.yml b/.travis.yml index 1cb369d5b..8c5aceb7c 100644 --- a/.travis.yml +++ b/.travis.yml @@ -4,6 +4,11 @@ os: language: cpp +cache: + apt: true + directories: + - .homebrew-cache + before_install: - sh .travis-deps.sh |