VERY experimental Nintendo Switch 2 emulator
C++
travis cache for cmake and sdl2 (#2060)
Lectem229a8d7c7e40
diff --git a/.travis-deps.sh b/.travis-deps.shindex b0833f74ac..567a2543d8 100755--- a/.travis-deps.sh+++ b/.travis-deps.sh@@ -9,15 +9,24 @@ if [ "$TRAVIS_OS_NAME" = "linux" -o -z "$TRAVIS_OS_NAME" ]; thenexport CXX=g++-6mkdir -p $HOME/.local- curl -L http://www.cmake.org/files/v3.2/cmake-3.2.0-Linux-i386.tar.gz \- | tar -xz -C $HOME/.local --strip-components=1+ if [ ! -e $HOME/.local/bin/cmake ]; then+ echo "CMake not found in the cache, get and extract it..."+ curl -L http://www.cmake.org/files/v3.2/cmake-3.2.0-Linux-i386.tar.gz \+ | tar -xz -C $HOME/.local --strip-components=1+ else+ echo "Using cached CMake"+ fi- (+ if [ ! -e $HOME/.local/lib/libSDL2.la ]; then+ echo "SDL2 not found in cache, get and build it..."wget http://libsdl.org/release/SDL2-2.0.4.tar.gz -O - | tar xzcd SDL2-2.0.4./configure --prefix=$HOME/.localmake -j4 && make install- )+ else+ echo "Using cached SDL2"+ fi+elif [ "$TRAVIS_OS_NAME" = "osx" ]; thenbrew update > /dev/null # silence the very verbose outputbrew unlink cmake || truediff --git a/.travis.yml b/.travis.ymlindex a693e70aa1..69f9ef2732 100644--- a/.travis.yml+++ b/.travis.yml@@ -26,6 +26,10 @@ addons:- lib32stdc++6 # For CMake- lftp # To upload builds+cache:+ directories:+ - $HOME/.local+install: ./.travis-deps.shscript: ./.travis-build.shafter_success: ./.travis-upload.sh