language: c # initial build matrix using default os and compiler env: - CONFLAGS=" --enable-release --disable-debug --enable-editor --with-opengl" - CONFLAGS="--disable-release --enable-debug --enable-editor --with-opengl" # each include adds one build, using the first env defined above matrix: include: - os: linux compiler: i586-mingw32msvc-gcc # - os: linux # compiler: i686-w64-mingw32-gcc - os: linux compiler: x86_64-w64-mingw32-gcc - os: osx compiler: clang before_install: # - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo apt-get update -qq; fi # native compilation - case $CC in gcc) sudo apt-get install -y libphysfs-dev libsdl1.2-dev libsdl-mixer1.2-dev libsdl-image1.2-dev; esac - case $CC in *-w64-mingw32-*) sudo apt-get remove -qq -y mingw32; esac - case $CC in *-w64-mingw32-*) sudo apt-get install -y mingw-w64; esac - case $CC in *-*-gcc) export CONFLAGS="$CONFLAGS --host $(basename $CC -gcc)"; esac - 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 - 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 # - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update; fi - 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 - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then HOMEBREW_NO_AUTO_UPDATE=1 brew install sdl sdl_mixer sdl_image; fi - echo $CONFLAGS script: - ./autogen.sh - ./configure $CONFLAGS - make