]> icculus.org git repositories - btb/d2x.git/blob - .travis.yml
make sure buffered robot movie only plays 15fps
[btb/d2x.git] / .travis.yml
1 language: c
2
3 # initial build matrix using default os and compiler
4 env:
5   - CONFLAGS=" --enable-release --disable-debug  --enable-editor --with-opengl"
6   - CONFLAGS="--disable-release  --enable-debug  --enable-editor --with-opengl"
7
8 # each include adds one build, using the first env defined above
9 matrix:
10   include:
11     - os: linux
12       compiler: i586-mingw32msvc-gcc
13 #   - os: linux
14 #     compiler: i686-w64-mingw32-gcc
15     - os: linux
16       compiler: x86_64-w64-mingw32-gcc
17     - os: osx
18       compiler: clang
19
20 before_install:
21 # - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo apt-get update -qq; fi
22
23 # native compilation
24   - case $CC in gcc) sudo apt-get install -y libphysfs-dev libsdl1.2-dev libsdl-mixer1.2-dev libsdl-image1.2-dev; esac
25
26   - case $CC in *-w64-mingw32-*) sudo apt-get remove -qq -y mingw32; esac
27   - case $CC in *-w64-mingw32-*) sudo apt-get install -y mingw-w64; esac
28
29   - case $CC in *-*-gcc) export CONFLAGS="$CONFLAGS --host $(basename $CC -gcc)"; esac
30
31   - case $CC in i?86-*mingw32*-*) export CONFLAGS="$CONFLAGS --with-sdl-prefix=`pwd`/arch/win32 CPPFLAGS=-Iarch/win32/include LDFLAGS=-Larch/win32/lib PKG_CONFIG_LIBDIR=`pwd`/arch/win32/lib/pkgconfig"; esac
32
33   - case $CC in x86_64-*mingw32*-*) export CONFLAGS="$CONFLAGS --with-sdl-prefix=`pwd`/arch/win64 CPPFLAGS=-Iarch/win64/include LDFLAGS=-Larch/win64/lib PKG_CONFIG_LIBDIR=`pwd`/arch/win64/lib/pkgconfig"; esac
34
35 # - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update; fi
36   - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then HOMEBREW_NO_AUTO_UPDATE=1 brew install https://raw.githubusercontent.com/Homebrew/homebrew-core/4aeb45bc1b3c6ffbc075943c4c9f519b932dcf2b/Formula/physfs.rb; fi
37   - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then HOMEBREW_NO_AUTO_UPDATE=1 brew install sdl sdl_mixer sdl_image; fi
38
39   - echo $CONFLAGS
40
41 script:
42   - ./autogen.sh
43   - ./configure $CONFLAGS
44   - make