2016-12-11 19:15:37 -05:00
|
|
|
# Travis-CI configuration file for SuperTuxKart
|
2014-01-30 23:22:52 -05:00
|
|
|
#
|
|
|
|
# Configuration manual:
|
|
|
|
# http://docs.travis-ci.com/user/build-configuration/
|
|
|
|
#
|
2015-11-08 17:59:47 -05:00
|
|
|
sudo: false
|
2014-01-30 23:22:52 -05:00
|
|
|
language: cpp
|
|
|
|
compiler:
|
|
|
|
- gcc
|
2015-11-08 17:59:47 -05:00
|
|
|
- clang
|
|
|
|
|
|
|
|
matrix:
|
|
|
|
fast_finish: true
|
|
|
|
|
|
|
|
env:
|
|
|
|
matrix:
|
2016-12-11 19:15:37 -05:00
|
|
|
- BUILD_TYPE="Debug" SERVER_ONLY="OFF"
|
|
|
|
- BUILD_TYPE="Debug" SERVER_ONLY="ON"
|
|
|
|
- BUILD_TYPE="Release" SERVER_ONLY="OFF"
|
|
|
|
- BUILD_TYPE="Release" SERVER_ONLY="ON"
|
2015-11-08 17:59:47 -05:00
|
|
|
|
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
packages:
|
|
|
|
- build-essential
|
2016-07-23 19:12:59 -04:00
|
|
|
- cmake
|
2015-11-08 17:59:47 -05:00
|
|
|
- libbluetooth-dev
|
2016-07-23 19:12:59 -04:00
|
|
|
- libcurl4-gnutls-dev
|
|
|
|
- libfreetype6-dev
|
|
|
|
- libfribidi-dev
|
2015-11-08 17:59:47 -05:00
|
|
|
- libgl1-mesa-dev
|
2016-07-23 19:12:59 -04:00
|
|
|
- libjpeg-dev
|
|
|
|
- libogg-dev
|
|
|
|
- libopenal-dev
|
|
|
|
- libpng-dev
|
|
|
|
- libvorbis-dev
|
|
|
|
- libxrandr-dev
|
|
|
|
- mesa-common-dev
|
|
|
|
- pkg-config
|
|
|
|
- zlib1g-dev
|
2015-11-08 17:07:12 -05:00
|
|
|
|
|
|
|
before_script:
|
2016-11-10 22:58:53 -05:00
|
|
|
# Unfortunately using all threads crashes g++: "g++: internal compiler error: Killed (program cc1plus)"
|
2016-12-11 19:15:37 -05:00
|
|
|
# Use half of the available threads, gcc is memory hungry
|
2016-11-11 02:29:17 -05:00
|
|
|
- 'if [ ${CC} = "gcc" ]; then
|
2016-12-11 19:15:37 -05:00
|
|
|
export THREADS=$((`nproc` / 2));
|
2016-11-11 02:29:17 -05:00
|
|
|
else
|
|
|
|
export THREADS=$((`nproc` + 1));
|
|
|
|
fi'
|
2015-11-08 17:07:12 -05:00
|
|
|
- echo "THREADS = $THREADS"
|
2015-11-08 17:59:47 -05:00
|
|
|
- free -mt
|
2015-11-08 17:07:12 -05:00
|
|
|
|
2014-01-30 23:22:52 -05:00
|
|
|
script:
|
2015-11-08 17:59:47 -05:00
|
|
|
- mkdir "build"
|
|
|
|
- cd "build"
|
2017-04-11 23:51:59 -04:00
|
|
|
- cmake .. -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DSERVER_ONLY=$SERVER_ONLY -DCHECK_ASSETS=off -DBUILD_RECORDER=off
|
2015-11-08 17:07:12 -05:00
|
|
|
- make VERBOSE=1 -j $THREADS
|
2014-07-23 19:26:27 -04:00
|
|
|
|
2014-04-10 02:41:02 -04:00
|
|
|
notifications:
|
|
|
|
irc:
|
|
|
|
channels:
|
2016-03-08 21:21:37 -05:00
|
|
|
- "irc.freenode.org#supertuxkart"
|
2014-04-10 02:41:02 -04:00
|
|
|
skip_join: false
|
|
|
|
use_notice: true
|
|
|
|
template:
|
|
|
|
#- "[%{commit}: %{author}] %{message}"
|
|
|
|
#- "%{build_url}"
|
|
|
|
- "[%{repository}#%{branch} @%{commit}] %{author}): %{message}"
|
|
|
|
- "Diff: %{compare_url}"
|
|
|
|
- "Build: %{build_url}"
|