From c7bba5a079979dcdfc450354c7d465ffac0dcece Mon Sep 17 00:00:00 2001 From: Yuri Kunde Schlesner Date: Sat, 20 Dec 2014 14:37:00 -0200 Subject: [PATCH 1/2] Travis: Enable APT cache. This should give us a small boost http://docs.travis-ci.com/user/caching/#Caching-Ubuntu-packages --- .travis.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.travis.yml b/.travis.yml index 1cb369d5b..fa60efaa3 100644 --- a/.travis.yml +++ b/.travis.yml @@ -4,6 +4,8 @@ os: language: cpp +cache: apt + before_install: - sh .travis-deps.sh From d261e77c168c3a933458fd1fbfecbc1b983d083b Mon Sep 17 00:00:00 2001 From: Yuri Kunde Schlesner Date: Sat, 20 Dec 2014 15:03:29 -0200 Subject: [PATCH 2/2] Travis: Try to cache downloaded files to work around sf.net sucking --- .travis-deps.sh | 2 ++ .travis.yml | 5 ++++- 2 files changed, 6 insertions(+), 1 deletion(-) 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 fa60efaa3..8c5aceb7c 100644 --- a/.travis.yml +++ b/.travis.yml @@ -4,7 +4,10 @@ os: language: cpp -cache: apt +cache: + apt: true + directories: + - .homebrew-cache before_install: - sh .travis-deps.sh