-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
54 lines (47 loc) · 1.64 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
language: c++
os:
- osx
- linux
compiler:
- clang
- gcc
before_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;
elif [ `uname` = "Darwin" ]; then
brew update && brew install opusfile libvorbis webp freetype flac physfs dumb theora enet;
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
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
elif [ `uname` = "Darwin" ]; then
cmake .. -DWANT_SHADERS_GL=$WANT_SHADERS_GL -G Xcode
xcodebuild
fi
notifications:
irc:
channels:
- "irc.freenode.org#allegro-dev"
on_success: always
on_failure: always
use_notice: false
skip_join: false