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
2018-07-03 19:37:57 -04:00
os :
- linux
2020-04-20 12:14:32 -04:00
# - osx
2014-01-30 23:22:52 -05:00
compiler :
- gcc
2015-11-08 17:59:47 -05:00
- clang
matrix :
2020-04-20 12:14:32 -04:00
# include:
# - osx_image: xcode11.3
2015-11-08 17:59:47 -05:00
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
2019-06-08 22:06:50 -04:00
- libharfbuzz-dev
2016-07-23 19:12:59 -04:00
- libjpeg-dev
- libogg-dev
- libopenal-dev
- libpng-dev
2020-04-20 12:14:32 -04:00
- libsdl2-dev
2016-07-23 19:12:59 -04:00
- libvorbis-dev
- pkg-config
- zlib1g-dev
2015-11-08 17:07:12 -05:00
before_script :
2018-07-03 19:37:57 -04:00
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update && brew bundle; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then sudo mkdir -p /usr/local/include/; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then sudo ln -s /System/Library/Frameworks/OpenGL.framework/Versions/A/Headers/ /usr/local/include/GL; fi
2020-12-03 23:02:27 -05:00
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then export CMAKE_PREFIX_PATH=/usr/local/opt/freetype/:/usr/local/opt/curl/:/usr/local/opt/libogg/:/usr/local/opt/libogg/:/usr/local/opt/libvorbis/:/usr/local/opt/openssl\@1.1/:/usr/local/opt/harfbuzz/; fi
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"
2020-12-03 23:02:27 -05:00
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then /usr/local/opt/cmake/bin/cmake .. -DFREETYPE_INCLUDE_DIRS=/usr/local/opt/freetype/include/freetype2/ -DOPENAL_INCLUDE_DIR=/usr/local/opt/openal-soft/include/ -DOPENAL_LIBRARY=/usr/local/opt/openal-soft/lib/libopenal.dylib -DFREETYPE_LIBRARY=/usr/local/opt/freetype/lib/libfreetype.dylib -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DSERVER_ONLY=$SERVER_ONLY -DCHECK_ASSETS=off -DBUILD_RECORDER=off; fi
2018-07-03 19:37:57 -04:00
- if [[ "$TRAVIS_OS_NAME" != "osx" ]]; then cmake .. -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DSERVER_ONLY=$SERVER_ONLY -DCHECK_ASSETS=off -DBUILD_RECORDER=off; fi
- make VERBOSE=1 -j3