2013-12-19 15:07:58 -05:00
|
|
|
language: cpp
|
|
|
|
compiler:
|
|
|
|
- gcc
|
|
|
|
- clang
|
2014-05-10 08:03:36 -04:00
|
|
|
|
|
|
|
before_install:
|
2014-05-10 08:18:40 -04:00
|
|
|
- if [ "$TRAVIS_MCSERVER_BUILD_TYPE" == "COVERAGE" ]; then sudo pip install cpp_coveralls; fi
|
2014-05-10 08:03:36 -04:00
|
|
|
|
2014-11-23 09:21:44 -05:00
|
|
|
# g++4.8
|
2014-12-13 15:58:28 -05:00
|
|
|
- if [ "$CXX" = "g++"]; then sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test; fi
|
2014-12-13 16:22:15 -05:00
|
|
|
- if [ "$CXX" = "g++"]; then sudo apt-get update -qq; fi
|
2014-11-23 09:21:44 -05:00
|
|
|
|
|
|
|
install:
|
|
|
|
# g++4.8
|
2014-12-13 16:22:15 -05:00
|
|
|
- if [ "$CXX" = "g++"]; then sudo apt-get install -qq g++-4.8; fi
|
|
|
|
- if [ "$CXX" = "g++"]; then export CXX="g++-4.8"; fi
|
|
|
|
- if [ "$CXX" = "g++"]; then export CC="gcc-4.8"; fi
|
2014-11-23 09:21:44 -05:00
|
|
|
|
2013-12-19 15:42:40 -05:00
|
|
|
# Build MCServer
|
2014-05-10 08:12:01 -04:00
|
|
|
script: ./CIbuild.sh
|
2014-05-10 08:03:36 -04:00
|
|
|
|
|
|
|
after_success:
|
2014-05-10 08:12:01 -04:00
|
|
|
- ./uploadCoverage.sh
|
2014-03-07 14:26:36 -05:00
|
|
|
|
|
|
|
env:
|
2014-03-10 16:52:13 -04:00
|
|
|
- TRAVIS_MCSERVER_BUILD_TYPE=RELEASE MCSERVER_PATH=./MCServer
|
|
|
|
- TRAVIS_MCSERVER_BUILD_TYPE=DEBUG MCSERVER_PATH=./MCServer_debug
|
|
|
|
- TRAVIS_MCSERVER_BUILD_TYPE=RELEASE TRAVIS_MCSERVER_FORCE32=1 MCSERVER_PATH=./MCServer
|
|
|
|
- TRAVIS_MCSERVER_BUILD_TYPE=DEBUG TRAVIS_MCSERVER_FORCE32=1 MCSERVER_PATH=./MCServer_debug
|
2013-12-19 15:42:40 -05:00
|
|
|
|
2014-05-10 08:03:36 -04:00
|
|
|
matrix:
|
|
|
|
include:
|
|
|
|
- compiler: gcc
|
2014-05-10 13:07:50 -04:00
|
|
|
env: TRAVIS_MCSERVER_BUILD_TYPE=COVERAGE MCSERVER_PATH=./MCServer
|
2014-05-10 08:03:36 -04:00
|
|
|
|
2013-12-19 15:42:40 -05:00
|
|
|
# Notification Settings
|
|
|
|
notifications:
|
|
|
|
email:
|
|
|
|
on_success: change
|
|
|
|
on_failure: always
|