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:
|
2018-09-02 10:56:19 -05:00
|
|
|
- os: linux
|
|
|
|
compiler: gcc
|
|
|
|
env: Tr_Compiler_Version="5"
|
|
|
|
- os: linux
|
|
|
|
compiler: gcc
|
|
|
|
env: Tr_Compiler_Version="6"
|
|
|
|
- os: linux
|
|
|
|
compiler: gcc
|
2017-08-27 22:29:16 +02:00
|
|
|
env: Tr_Compiler_Version="7"
|
2018-05-15 10:30:04 -05:00
|
|
|
- os: linux
|
|
|
|
compiler: gcc
|
2018-09-02 10:56:19 -05:00
|
|
|
env: Tr_Compiler_Version="8"
|
|
|
|
|
|
|
|
# clang
|
2015-12-27 14:40:31 +01:00
|
|
|
- os: linux
|
|
|
|
compiler: clang
|
2018-09-02 10:56:19 -05:00
|
|
|
env: Tr_Compiler_Version="default"
|
2016-08-09 21:20:57 +02:00
|
|
|
- os: linux
|
|
|
|
compiler: clang
|
2018-09-02 10:56:19 -05:00
|
|
|
env: Tr_Compiler_Version="6.0"
|
|
|
|
|
|
|
|
# osx
|
2015-12-27 13:57:01 +01:00
|
|
|
- os: osx
|
2018-03-13 02:09:09 -05:00
|
|
|
osx_image: xcode9.2
|
|
|
|
env: Tr_Xcode_Version="9.2"
|
2017-01-21 10:44:47 +01:00
|
|
|
- os: osx
|
2019-02-13 13:40:36 +01:00
|
|
|
osx_image: xcode10.1
|
|
|
|
env: Tr_Xcode_Version="10.1"
|
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
|
|
|
|
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
|
2018-10-17 16:34:51 -05:00
|
|
|
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then brew install sdl2 lua fontconfig 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
|
2016-10-04 21:10:15 +02:00
|
|
|
- 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
|
2016-11-18 02:07:44 +01:00
|
|
|
- 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
|
2018-09-18 18:29:37 -05:00
|
|
|
- if [ "$Tr_Compiler_Version" != "" ] && [ "$Tr_Compiler_Version" != "default" ] && [ "$CC" == "clang" ]; then
|
|
|
|
export CXX="clang++-${Tr_Compiler_Version}" CC="clang-${Tr_Compiler_Version}";
|
|
|
|
fi
|
2016-07-17 17:06:01 +02:00
|
|
|
- $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
|
2018-10-07 23:46:12 -05:00
|
|
|
# version 6 skipped here. Below, it's used to test use of FORCE_EMBEDDED_LIBS option
|
|
|
|
- if [ "$TRAVIS_OS_NAME" = "linux" ] && [ "$(echo "$CC" | grep 'clang')" = "" ] && [ $Tr_Compiler_Version != "6" ]; then
|
2018-09-11 23:30:48 -05:00
|
|
|
mkdir build;
|
|
|
|
cd build;
|
2018-11-04 22:30:57 +01:00
|
|
|
cmake .. -DCMAKE_INSTALL_PREFIX=$PWD/local;
|
2018-09-11 23:30:48 -05:00
|
|
|
make && make install;
|
|
|
|
fi
|
2018-09-17 17:35:19 -05:00
|
|
|
- if [ "$TRAVIS_OS_NAME" = "linux" ] && [ "$(echo "$CC" | grep 'clang')" != "" ]; then
|
|
|
|
mkdir build;
|
|
|
|
cd build;
|
2018-11-04 22:30:57 +01:00
|
|
|
cmake .. -DCMAKE_INSTALL_PREFIX=$PWD/local;
|
2018-09-17 17:35:19 -05:00
|
|
|
make && make install;
|
|
|
|
fi
|
|
|
|
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then
|
|
|
|
mkdir build;
|
|
|
|
cd build;
|
2018-11-04 22:30:57 +01:00
|
|
|
cmake .. -DCMAKE_INSTALL_PREFIX=$PWD/local;
|
2018-09-17 17:35:19 -05:00
|
|
|
make && make install;
|
|
|
|
echo 'Dependencies:';
|
2019-01-31 02:40:31 +01:00
|
|
|
otool -L glest;
|
2018-09-17 17:35:19 -05:00
|
|
|
fi
|
2018-10-07 23:46:12 -05:00
|
|
|
- if [ "$TRAVIS_OS_NAME" = "linux" ] && [ "$(echo "$CC" | grep 'clang')" = "" ] && [ $Tr_Compiler_Version = "6" ]; then
|
|
|
|
mkdir build;
|
|
|
|
cd build;
|
2018-11-04 22:30:57 +01:00
|
|
|
cmake .. -DFORCE_EMBEDDED_LIBS=ON -DCMAKE_INSTALL_PREFIX=$PWD/local;
|
2018-10-07 23:46:12 -05:00
|
|
|
make && make install;
|
|
|
|
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:
|
2019-01-31 02:40:31 +01:00
|
|
|
- "irc.freenode.org#glest-dev"
|
2013-12-08 22:03:34 +01:00
|
|
|
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
|
2018-03-13 02:09:09 -05:00
|
|
|
on_error: always
|
|
|
|
on_failure: 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}"
|