2015-12-27 12:16:15 +01:00
# https://docs.travis-ci.com/user/customizing-the-build/
2013-12-08 22:03:34 +01:00
language : cpp
2014-02-12 08:45:01 +01:00
2015-12-27 12:38:46 +01:00
sudo : required
2014-02-12 08:45:01 +01:00
matrix :
2016-07-17 17:06:01 +02:00
include :
- os : linux
compiler : gcc
env : Tr_Compiler_Version="6"
# https://launchpad.net/~ubuntu-toolchain-r/+archive/ubuntu/test
2016-08-09 21:20:57 +02:00
dist : trusty # broken compiler on 12.04
2016-09-04 22:06:52 +02:00
#- os: linux
# compiler: gcc
# env: Tr_Compiler_Version="5"
2016-08-09 21:20:57 +02:00
# https://launchpad.net/~ubuntu-toolchain-r/+archive/ubuntu/test
2016-09-04 22:06:52 +02:00
# dist: trusty
2016-07-17 17:06:01 +02:00
- os : linux
compiler : gcc
env : Tr_Compiler_Version="default"
2015-12-27 14:40:31 +01:00
- os : linux
compiler : clang
2016-07-17 17:06:01 +02:00
env : Tr_Compiler_Version="3.8"
2016-09-04 22:06:52 +02:00
# http://apt.llvm.org/, compiler not newer than available on debian testing
# https://packages.debian.org/search?suite=testing&keywords=clang-
2016-08-09 21:20:57 +02:00
dist : trusty
- os : linux
compiler : clang
env : Tr_Compiler_Version="default"
dist : trusty # broken compiler on 12.04
2016-07-17 20:24:33 +02:00
#- os: osx
2016-08-09 21:20:57 +02:00
# osx_image: xcode8
# env: Tr_Xcode_Version="8"
2016-07-17 17:06:01 +02:00
# https://docs.travis-ci.com/user/osx-ci-environment/#OS-X-Version
2015-12-27 13:57:01 +01:00
- os : osx
2016-10-04 21:10:15 +02:00
osx_image : xcode6.4
#env: Tr_Xcode_Version="default"
env : Tr_Xcode_Version="6.4"
# https://docs.travis-ci.com/user/osx-ci-environment/#OS-X-Version
# https://github.com/Homebrew/brew/blob/master/docs/Installation.md#requirements
2016-07-17 17:06:01 +02:00
fast_finish : true
2016-06-02 21:44:10 +02:00
allow_failures :
2016-09-04 22:06:52 +02:00
#- os: osx
# osx_image: xcode8
# env: Tr_Xcode_Version="8"
2014-02-12 08:45:01 +01:00
2014-01-26 03:36:03 +01:00
git :
submodules : false
2014-02-12 08:45:01 +01:00
2014-01-24 18:47:27 +01:00
#branches:
# only:
# - master
2014-02-12 08:45:01 +01:00
2013-12-08 22:03:34 +01:00
before_install :
2016-07-17 17:06:01 +02:00
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then ./.travis-before_install.sh "$CC" "$Tr_Compiler_Version"; fi
2015-12-27 14:40:31 +01:00
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then brew update; fi
2015-12-27 16:19:01 +01:00
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then brew install sdl2 lua freetype ftgl libogg glew libvorbis cppunit glib fribidi miniupnpc wxmac; fi
2016-10-04 21:10:15 +02:00
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then brew link --force gettext; fi
2016-09-04 22:06:52 +02:00
# ^ odd linking problems related with brew which is not creating links, not on travis also needed are: cmake + pkgconfig + xquartz (find by "search") + (maybe) git
2016-07-17 17:06:01 +02:00
- if [ "$Tr_Compiler_Version" != "" ] && [ "$Tr_Compiler_Version" != "default" ] && [ "$CC" = "gcc" ]; then export CXX="g++-${Tr_Compiler_Version}" CC="gcc-${Tr_Compiler_Version}"; fi
- if [ "$Tr_Compiler_Version" != "" ] && [ "$Tr_Compiler_Version" != "default" ] && [ "$CC" == "clang" ]; then export CXX="clang++-${Tr_Compiler_Version}" CC="clang-${Tr_Compiler_Version}"; fi
- $CC --version
2015-12-27 12:16:15 +01:00
- $CXX --version
2015-12-27 15:52:39 +01:00
- cmake --version
2014-02-12 08:45:01 +01:00
2013-12-08 22:03:34 +01:00
script :
# ALL THE BUILD COMMANDS HERE
2015-12-27 14:40:31 +01:00
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then mk/linux/build-mg.sh -c 4; fi
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then mk/macosx/build-mg.sh -c 4; fi
2014-02-12 08:45:01 +01:00
2016-01-18 23:53:19 +01:00
# https://docs.travis-ci.com/user/notifications/#IRC-notification
2013-12-08 22:03:34 +01:00
notifications :
irc :
channels :
- "irc.freenode.org#megaglest"
skip_join : true
2014-01-24 18:47:27 +01:00
use_notice : true
2015-11-10 22:15:36 +01:00
on_success : change
2014-01-24 18:47:27 +01:00
template :
2016-01-18 23:53:19 +01:00
- "[%{repository_name}#%{branch}@%{commit}] %{author}: %{message} %{build_url}"