freeminer/.travis.yml

70 lines
1.5 KiB
YAML
Raw Normal View History

2013-01-22 01:37:58 +04:00
language: cpp
2015-10-11 00:50:59 +03:00
2015-10-14 13:53:33 +03:00
cache: ccache
2013-01-22 01:37:58 +04:00
compiler:
- gcc
2015-10-11 12:44:56 +03:00
- clang
2015-10-11 00:50:59 +03:00
os:
- linux
2015-10-11 01:20:59 +03:00
- osx
2015-10-11 00:50:59 +03:00
matrix:
fast_finish: true
addons:
apt:
sources:
2015-10-11 12:44:56 +03:00
# NOTE gcc-4.9 breaks clang
2015-10-11 00:50:59 +03:00
- ubuntu-toolchain-r-test # for gcc-4.8
- llvm-toolchain-precise-3.7 # for clang
packages:
- clang
- cmake
- doxygen
- g++-4.8
- gcc-4.8
- libirrlicht-dev
- libleveldb-dev
- libogg-dev
- libopenal-dev
- libsnappy-dev
- libsqlite3-dev
- libvorbis-dev
- libxxf86vm-dev
- llvm-3.7
2013-01-28 00:37:20 +04:00
before_install:
2015-10-11 00:50:59 +03:00
- if [ $CC = 'gcc' ]; then
export CC='gcc-4.8';
export CXX='g++-4.8';
export LINK='gcc-4.8';
export LINKXX='g++-4.8';
2015-10-14 13:53:33 +03:00
else
export CC="clang";
export CXX="clang++";
2015-10-11 00:50:59 +03:00
fi
2015-10-11 01:20:59 +03:00
- if [ $TRAVIS_OS_NAME == 'osx' ]; then
brew update;
brew install gettext irrlicht libogg;
2015-10-14 13:53:33 +03:00
else
export PATH="/usr/lib/ccache/:$PATH";
2015-10-14 22:08:10 +03:00
ccache -s;
2015-10-11 01:20:59 +03:00
fi
2015-10-11 12:44:56 +03:00
- mkdir -p _build
- cd _build
2015-10-11 00:50:59 +03:00
script:
2015-10-11 00:50:59 +03:00
- if [ $TRAVIS_OS_NAME == "linux" ]; then
2015-10-15 17:55:41 +03:00
cmake -DRUN_IN_PLACE=0 -DENABLE_GETTEXT=1 ..;
2015-10-11 00:50:59 +03:00
sudo make -j3 install;
2015-10-15 17:55:41 +03:00
freeminer --go -reconnects=5 -video_driver=null -enable_sound=0 -enable_clouds=0 -enable_fog=0 -autojump=1 -respawn_auto=1 -disable_anticheat=1 -random_input=1 -continuous_forward=1 --address '' --autoexit 15;
2015-10-11 00:50:59 +03:00
else
cmake .. -DGETTEXT_LIBRARY=/usr/local/opt/gettext/lib/libgettextlib.dylib -DGETTEXT_INCLUDE_DIR=/usr/local/opt/gettext/include;
make -j3 package;
fi
2013-01-22 01:43:56 +04:00
notifications:
email: false