Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add SDL to the travis script. #1002

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 17 additions & 14 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,39 +8,42 @@ 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
grep -q 'failed tests: 0' /tmp/test_out
sudo make install
sudo ldconfig
gcc ../misc/install_test.c -o install_test $(pkg-config --cflags --libs allegro_image-debug-5 allegro_ttf-debug-5 allegro_acodec-debug-5 allegro_dialog-debug-5 allegro_primitives-debug-5 allegro_video-debug-5)
pulseaudio -D
./install_test
if [ ${ALLEGRO_SDL} = "off" ]; then
sudo make install
sudo ldconfig
gcc ../misc/install_test.c -o install_test $(pkg-config --cflags --libs allegro_image-debug-5 allegro_ttf-debug-5 allegro_acodec-debug-5 allegro_dialog-debug-5 allegro_primitives-debug-5 allegro_video-debug-5)
pulseaudio -D
./install_test
fi
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