Updated Travis CL configuration

Remove Debug macOS target
Add GCC 6 Linux target
Set Clang Linux target to build Debug configuration
Add FMOD Ex dependency
Exclude AppVeyor test branches from build
Set git clone depth to three
Remove unused APT source
This commit is contained in:
alexey.lysiuk 2017-03-07 16:10:32 +02:00
parent 620ce72ebd
commit 5e91e79a4f

View file

@ -2,28 +2,31 @@ language: c++
dist: trusty dist: trusty
sudo: required sudo: required
branches:
except:
- /^appveyor.*$/
git:
depth: 3
matrix: matrix:
include: include:
- os: osx
osx_image: xcode8.2
env:
- CMAKE_OPTIONS="-DCMAKE_BUILD_TYPE=Debug -DCMAKE_OSX_DEPLOYMENT_TARGET=10.7"
- os: osx - os: osx
osx_image: xcode8.2 osx_image: xcode8.2
env: env:
- CMAKE_OPTIONS="-DCMAKE_BUILD_TYPE=Release -DCMAKE_OSX_DEPLOYMENT_TARGET=10.7 -DFORCE_INTERNAL_ZLIB=YES -DFORCE_INTERNAL_JPEG=YES -DFORCE_INTERNAL_BZIP2=YES -DFORCE_INTERNAL_GME=YES" - CMAKE_OPTIONS="-DCMAKE_BUILD_TYPE=Release -DCMAKE_OSX_DEPLOYMENT_TARGET=10.7 -DFORCE_INTERNAL_ZLIB=YES -DFORCE_INTERNAL_JPEG=YES -DFORCE_INTERNAL_BZIP2=YES -DFORCE_INTERNAL_GME=YES"
- FMOD_LIBRARY=libfmodex.dylib
- os: linux - os: linux
compiler: gcc compiler: gcc
env: env:
- GCC_VERSION=5 - GCC_VERSION=5
- CMAKE_OPTIONS="-DCMAKE_BUILD_TYPE=Release" - CMAKE_OPTIONS="-DCMAKE_BUILD_TYPE=Release"
- FMOD_LIBRARY=libfmodex64.so
addons: addons:
apt: apt:
sources: sources:
- ubuntu-toolchain-r-test - ubuntu-toolchain-r-test
- kubuntu-backports
packages: packages:
- g++-5 - g++-5
- libsdl2-dev - libsdl2-dev
@ -34,17 +37,37 @@ matrix:
- libfluidsynth-dev - libfluidsynth-dev
- libgtk-3-dev - libgtk-3-dev
- os: linux
compiler: gcc
env:
- GCC_VERSION=6
- CMAKE_OPTIONS="-DCMAKE_BUILD_TYPE=RelWithDebInfo -DDYN_FLUIDSYNTH=NO"
- FMOD_LIBRARY=libfmodex64.so
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-6
- libsdl2-dev
- libgme-dev
- libopenal-dev
- libmpg123-dev
- libsndfile-dev
- libfluidsynth-dev
- libgtk-3-dev
- os: linux - os: linux
compiler: clang compiler: clang
env: env:
- CLANG_VERSION=3.9 - CLANG_VERSION=3.9
- CMAKE_OPTIONS="-DCMAKE_BUILD_TYPE=RelWithDebInfo -DDYN_OPENAL=NO -DDYN_FLUIDSYNTH=NO" - CMAKE_OPTIONS="-DCMAKE_BUILD_TYPE=Debug -DDYN_OPENAL=NO"
- FMOD_LIBRARY=libfmodex64.so
addons: addons:
apt: apt:
sources: sources:
- ubuntu-toolchain-r-test - ubuntu-toolchain-r-test
- llvm-toolchain-trusty-3.9 - llvm-toolchain-trusty-3.9
- kubuntu-backports
packages: packages:
- clang-3.9 - clang-3.9
- libstdc++-5-dev - libstdc++-5-dev
@ -62,11 +85,15 @@ before_install:
- if [ -n "$CLANG_VERSION" ]; then export CC="clang-${CLANG_VERSION}" CXX="clang++-${CLANG_VERSION}"; fi - if [ -n "$CLANG_VERSION" ]; then export CC="clang-${CLANG_VERSION}" CXX="clang++-${CLANG_VERSION}"; fi
- $CC --version - $CC --version
- $CXX --version - $CXX --version
- export FMOD_FILENAME=fmod-4.44.64-${TRAVIS_OS_NAME}.tar.bz2
- curl -LO "https://github.com/coelckers/gzdoom/releases/download/ci_deps/${FMOD_FILENAME}"
- tar -xf "${FMOD_FILENAME}"
script: script:
- echo ${TRAVIS_BUILD_DIR}
- mkdir build - mkdir build
- cd build - cd build
- cmake ${CMAKE_OPTIONS} .. - cmake ${CMAKE_OPTIONS} -DFMOD_INCLUDE_DIR="${TRAVIS_BUILD_DIR}/fmod/inc" -DFMOD_LIBRARY="${TRAVIS_BUILD_DIR}/fmod/lib/${FMOD_LIBRARY}" ..
- make -j2 - make -j2
notifications: notifications: