Skip to content

Commit

Permalink
Cache SDL2 libs for Travis build (#169)
Browse files Browse the repository at this point in the history
  • Loading branch information
cxong committed Oct 24, 2015
1 parent 2188b1e commit 1399450
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 1399450

Please sign in to comment.