MegaGlest/.travis.yml

76 lines
2.5 KiB
YAML
Raw Normal View History

2015-12-27 12:16:15 +01:00
# https://docs.travis-ci.com/user/customizing-the-build/
language: cpp
2015-12-27 12:38:46 +01:00
sudo: required
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
dist: trusty # broken compiler on 12.04
2016-07-17 17:06:01 +02:00
- os: linux
compiler: gcc
env: Tr_Compiler_Version="5"
# https://launchpad.net/~ubuntu-toolchain-r/+archive/ubuntu/test
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"
# http://apt.llvm.org/
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
# 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
# odd linking problems related with brew which is not creating links, e.g. solution
# (quite bad) "brew link gettext", or showing in cmake direct paths (also not so good)
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
compiler: clang
env: Tr_Compiler_Version="default"
git:
submodules: false
2014-01-24 18:47:27 +01:00
#branches:
# only:
# - master
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
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
# https://docs.travis-ci.com/user/notifications/#IRC-notification
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:
- "[%{repository_name}#%{branch}@%{commit}] %{author}: %{message} %{build_url}"