From 1399450a7b90df13dafc67c40fddb316c23961af Mon Sep 17 00:00:00 2001 From: Cong Date: Sat, 24 Oct 2015 14:20:57 +1100 Subject: [PATCH] Cache SDL2 libs for Travis build (#169) --- .travis.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 38496c5a5..b27b8114f 100644 --- a/.travis.yml +++ b/.travis.yml @@ -16,7 +16,7 @@ addons: install: # SDL2 - - export SDL_PREFIX=$PWD/sdl2 + - export SDL_PREFIX=$HOME/sdl2 - export PKG_CONFIG_PATH=$SDL_PREFIX/lib/pkgconfig - export PATH=$PATH:$SDL_PREFIX/bin/ - curl -O http://www.libsdl.org/release/SDL2-2.0.3.tar.gz @@ -28,6 +28,9 @@ install: - curl -O https://www.libsdl.org/projects/SDL_mixer/release/SDL2_mixer-2.0.0.tar.gz - tar -xzvf SDL2_mixer-2.0.0.tar.gz - (cd SDL2_mixer-2.0.0 && ./configure --prefix=$SDL_PREFIX && make && make install) +cache: + directories: + - $HOME/sdl2 before_script: # force newer gcc version - if [ "$CC" = "gcc" ]; then export CC="gcc-4.8"; fi