2013-01-22 01:37:58 +04:00
|
|
|
language: cpp
|
2015-10-11 00:50:59 +03:00
|
|
|
|
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
|
|
|
|
- gettext
|
|
|
|
- libbz2-dev
|
|
|
|
- libgettextpo0
|
|
|
|
- libgl1-mesa-dev
|
|
|
|
- libirrlicht-dev
|
|
|
|
- libjpeg8-dev
|
|
|
|
- libleveldb-dev
|
|
|
|
- libogg-dev
|
|
|
|
- libopenal-dev
|
|
|
|
- libpng12-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';
|
|
|
|
fi
|
2015-10-11 01:20:59 +03:00
|
|
|
- if [ $TRAVIS_OS_NAME == 'osx' ]; then
|
|
|
|
brew update;
|
|
|
|
brew install gettext irrlicht libogg;
|
|
|
|
fi
|
2015-10-11 12:44:56 +03:00
|
|
|
- mkdir -p _build
|
|
|
|
- cd _build
|
2015-10-11 00:50:59 +03:00
|
|
|
#- git submodule update --init --recursive&
|
|
|
|
|
2014-09-20 01:05:14 +03:00
|
|
|
script:
|
2015-10-11 00:50:59 +03:00
|
|
|
- if [ $TRAVIS_OS_NAME == "linux" ]; then
|
|
|
|
cmake -DENABLE_GETTEXT=1 ..;
|
|
|
|
sudo make -j3 install;
|
|
|
|
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
|