Skip to content

Commit

Permalink
Add SDL to the travis script.
Browse files Browse the repository at this point in the history
  • Loading branch information
SiegeLord committed Feb 7, 2019
1 parent 8955b62 commit 6e30387
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,20 @@ compiler:
- clang
- gcc

before_install:
install:
- if [ `uname` = "Linux" ]; then
export DISPLAY=:99.0;
sh -e /etc/init.d/xvfb start;
sudo apt-get update;
sudo apt-get install -y libvorbis-dev libtheora-dev libwebp-dev libphysfs-dev libopusfile-dev libdumb1-dev libflac-dev libpulse-dev libgtk2.0-dev pandoc libcurl4-nss-dev libenet-dev pulseaudio libasound2-dev libopenal-dev;
sudo apt-get install -y libvorbis-dev libtheora-dev libwebp-dev libphysfs-dev libopusfile-dev libdumb1-dev libflac-dev libpulse-dev libgtk2.0-dev pandoc libcurl4-nss-dev libenet-dev pulseaudio libasound2-dev libopenal-dev libsdl2-dev;
elif [ `uname` = "Darwin" ]; then
brew update && brew install opusfile libvorbis webp freetype flac physfs dumb theora enet;
brew update && brew install opusfile libvorbis webp freetype flac physfs dumb theora enet sdl2;
fi

env:
- WANT_SHADERS_GL=on
- WANT_SHADERS_GL=off
- WANT_SHADERS_GL=on SDL=on
- WANT_SHADERS_GL=on SDL=off
- WANT_SHADERS_GL=off SDL=off

before_script:
- mkdir build
Expand All @@ -29,7 +30,7 @@ before_script:
script:
- |
if [ `uname` = "Linux" ]; then
cmake .. -DCMAKE_BUILD_TYPE=Debug -DWANT_SHADERS_GL=$WANT_SHADERS_GL -DWANT_CURL_EXAMPLE=on
cmake .. -DCMAKE_BUILD_TYPE=Debug -DWANT_SHADERS_GL=$WANT_SHADERS_GL -DWANT_SDL=$WANT_SDL -DWANT_CURL_EXAMPLE=on
make
. ../tests/grab_bitmap_suites.sh
find ../tests -name '*.ini' | grep -v 'compressed' | xargs tests/test_driver | tee /tmp/test_out
Expand All @@ -40,7 +41,7 @@ script:
pulseaudio -D
./install_test
elif [ `uname` = "Darwin" ]; then
cmake .. -DWANT_SHADERS_GL=$WANT_SHADERS_GL -G Xcode
cmake .. -DWANT_SHADERS_GL=$WANT_SHADERS_GL -DWANT_SDL=$WANT_SDL -G Xcode
xcodebuild
fi
Expand Down

0 comments on commit 6e30387

Please sign in to comment.