File: .travis.yml

package info (click to toggle)
allegro5 2%3A5.2.4.0-3
  • links: PTS, VCS
  • area: main
  • in suites:
  • size: 17,488 kB
  • sloc: ansic: 122,659; cpp: 15,757; objc: 4,887; python: 2,890; java: 2,213; sh: 1,000; makefile: 51; perl: 37; xml: 26; pascal: 24
file content (54 lines) | stat: -rw-r--r-- 1,677 bytes parent folder | download
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