76 lines
2.5 KiB
YAML
76 lines
2.5 KiB
YAML
# https://docs.travis-ci.com/user/customizing-the-build/
|
|
language: cpp
|
|
|
|
sudo: required
|
|
|
|
matrix:
|
|
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
|
|
- os: linux
|
|
compiler: gcc
|
|
env: Tr_Compiler_Version="5"
|
|
# https://launchpad.net/~ubuntu-toolchain-r/+archive/ubuntu/test
|
|
dist: trusty
|
|
- os: linux
|
|
compiler: gcc
|
|
env: Tr_Compiler_Version="default"
|
|
- os: linux
|
|
compiler: clang
|
|
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
|
|
#- os: osx
|
|
# osx_image: xcode8
|
|
# env: Tr_Xcode_Version="8"
|
|
# 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)
|
|
- os: osx
|
|
env: Tr_Xcode_Version="default"
|
|
fast_finish: true
|
|
allow_failures:
|
|
- os: linux
|
|
compiler: clang
|
|
env: Tr_Compiler_Version="default"
|
|
|
|
git:
|
|
submodules: false
|
|
|
|
#branches:
|
|
# only:
|
|
# - master
|
|
|
|
before_install:
|
|
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then ./.travis-before_install.sh "$CC" "$Tr_Compiler_Version"; fi
|
|
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then brew update; fi
|
|
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then brew install sdl2 lua freetype ftgl libogg glew libvorbis cppunit glib fribidi miniupnpc wxmac; fi
|
|
- 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
|
|
- $CXX --version
|
|
- cmake --version
|
|
|
|
script:
|
|
# ALL THE BUILD COMMANDS HERE
|
|
- 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
|
|
use_notice: true
|
|
on_success: change
|
|
template:
|
|
- "[%{repository_name}#%{branch}@%{commit}] %{author}: %{message} %{build_url}"
|