MegaGlest/.travis.yml

94 lines
3.6 KiB
YAML
Raw Permalink 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
2017-09-22 06:28:15 +02:00
addons:
apt:
packages:
- libsdl2-dev
env: Tr_Compiler_Version="7"
2016-07-17 17:06:01 +02:00
# 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
2017-09-22 06:28:15 +02:00
addons:
apt:
packages:
- libsdl2-dev
2016-07-17 17:06:01 +02:00
env: Tr_Compiler_Version="default"
dist: trusty
2015-12-27 14:40:31 +01:00
- os: linux
compiler: clang
2017-09-22 06:28:15 +02:00
addons:
apt:
packages:
- libsdl2-dev
env: Tr_Compiler_Version="5.0"
# http://apt.llvm.org/, compiler not newer than available on debian testing
# https://packages.debian.org/search?suite=testing&keywords=clang-
dist: trusty
- os: linux
compiler: clang
2017-09-22 06:28:15 +02:00
addons:
apt:
packages:
- libsdl2-dev
env: Tr_Compiler_Version="default"
dist: trusty # broken compiler on 12.04
2015-12-27 13:57:01 +01:00
- os: osx
#osx_image: xcode6.4 # seems broken and has lower priority in queue than default one
2016-11-17 23:14:05 +01:00
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:
2017-01-21 10:44:47 +01:00
- os: osx
# it's not really acceptable to wait 40 minutes or sometimes up to even 3 hours
# for the result just because the queue for mac is always so long
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-11-17 23:14:05 +01:00
# ^ not on travis also needed are: cmake + pkgconfig + xquartz (find by "search") + (maybe) git + (maybe) bash
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then brew outdated cmake || brew upgrade cmake; brew outdated pkgconfig || brew upgrade pkgconfig; fi
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then brew link --force gettext; fi
2016-11-17 23:14:05 +01:00
# ^ odd linking problems related with brew which is not creating links
- if [ "$TRAVIS_OS_NAME" = "osx" ] && [ "$Tr_Xcode_Version" = "6.4" ]; then brew install Caskroom/cask/xquartz; 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
2017-01-21 10:44:47 +01:00
- if [ "$TRAVIS_OS_NAME" = "linux" ] && [ "$(echo "$CC" | grep 'clang')" = "" ]; then mk/linux/build-mg.sh -c 4; fi
- if [ "$TRAVIS_OS_NAME" = "linux" ] && [ "$(echo "$CC" | grep 'clang')" != "" ]; then mk/linux/build-mg.sh -w -c 4; fi
# ^ -w may be removed on more modern dist: than trusty, problems related with 'new wx+clang+old gcc'
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then mk/macos/build-mg.sh -c 4; fi
# https://docs.travis-ci.com/user/notifications/#IRC-notification
notifications:
irc:
channels:
2021-05-22 12:43:51 +02:00
- "irc.libera.chat#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}"