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
SiegeLordEx authored and SiegeLord committed Feb 7, 2019
1 parent 8955b62 commit d9861e0
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,28 +8,29 @@ compiler:
- clang
- gcc

before_install:
env:
- WANT_SHADERS_GL=on ALLEGRO_SDL=on
- WANT_SHADERS_GL=on ALLEGRO_SDL=off
- WANT_SHADERS_GL=off ALLEGRO_SDL=off

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 libegl1-mesa-dev libgles2-mesa-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

before_script:
- mkdir build
- cd build

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 -DALLEGRO_SDL=$ALLEGRO_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 -DALLEGRO_SDL=$ALLEGRO_SDL -G Xcode
xcodebuild
fi
Expand Down

0 comments on commit d9861e0

Please sign in to comment.