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"
|
2016-07-17 18:13:48 +02:00
|
|
|
dist: trusty # broken compiler on 12.04
|
2016-07-17 17:06:01 +02:00
|
|
|
# https://launchpad.net/~ubuntu-toolchain-r/+archive/ubuntu/test
|
|
|
|
- os: linux
|
|
|
|
compiler: gcc
|
|
|
|
env: Tr_Compiler_Version="5"
|
|
|
|
- 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"
|
|
|
|
# http://apt.llvm.org/
|
|
|
|
#- os: linux
|
|
|
|
#compiler: clang
|
2016-07-17 18:13:48 +02:00
|
|
|
#env: Tr_Compiler_Version="default" # broken compiler on 12.04
|
2015-12-27 13:57:01 +01:00
|
|
|
- os: osx
|
2016-07-17 18:13:48 +02:00
|
|
|
osx_image: xcode7
|
|
|
|
env: Tr_Xcode_Version="7"
|
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-07-17 17:06:01 +02:00
|
|
|
env: Tr_Xcode_Version="default"
|
|
|
|
fast_finish: true
|
2016-06-02 21:44:10 +02:00
|
|
|
allow_failures:
|
|
|
|
- os: linux
|
2016-07-17 17:06:01 +02:00
|
|
|
compiler: gcc
|
|
|
|
env: Tr_Compiler_Version="6"
|
|
|
|
- os: osx
|
2016-07-17 18:13:48 +02:00
|
|
|
osx_image: xcode7
|
|
|
|
env: Tr_Xcode_Version="7"
|
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-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}"
|