2017-03-21 12:35:51 +00:00
language : c++
sudo : false
dist : trusty
2017-07-26 02:57:14 +00:00
os :
- linux
- osx
2017-03-21 12:35:51 +00:00
addons :
apt :
packages :
- libfreetype6-dev
2017-08-30 23:39:08 +00:00
- libgtest-dev
2017-03-21 12:35:51 +00:00
- libsdl2-dev
script :
2017-07-26 02:57:14 +00:00
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then brew install sdl2; fi
2017-08-30 23:39:08 +00:00
- if [ "$TRAVIS_OS_NAME" != "osx" ]; then mkdir gtest_build; cmake -E chdir gtest_build cmake /usr/src/gtest; cmake --build gtest_build; fi
2017-03-21 12:35:51 +00:00
- mkdir build
- cd build
2017-08-30 23:39:08 +00:00
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then cmake -Werror=dev ..; fi
- if [ "$TRAVIS_OS_NAME" != "osx" ]; then cmake -Werror=dev -DGTEST_LIBRARY=../gtest_build/libgtest.a -DGTEST_MAIN_LIBRARY=../gtest_build/libgtest_main.a ..; fi
2017-03-21 12:35:51 +00:00
- make everything
2017-08-30 23:39:08 +00:00
- if [ "$TRAVIS_OS_NAME" != "osx" ]; then make run_tests; fi
2017-09-05 14:00:50 +00:00
- make package_default
2017-03-21 12:35:51 +00:00
env :
global :
- CFLAGS="-Wdeclaration-after-statement -Werror"
- CXXFLAGS="-Werror"