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:
|
2018-07-08 17:41:22 +00:00
|
|
|
- python scripts/check_header_guards.py
|
2017-11-09 12:41:31 +00:00
|
|
|
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then CMAKE_EXTRA_ARGS="-DDOWNLOAD_GTEST=ON"; fi
|
2017-10-15 07:57:21 +00:00
|
|
|
- if [ "$TRAVIS_OS_NAME" != "osx" ]; then CMAKE_EXTRA_ARGS="-DGTEST_LIBRARY=../gtest_build/libgtest.a -DGTEST_MAIN_LIBRARY=../gtest_build/libgtest_main.a"; mkdir gtest_build; cmake -E chdir gtest_build cmake /usr/src/gtest; cmake --build gtest_build; fi
|
|
|
|
- mkdir build; cd build
|
|
|
|
- cmake -Werror=dev $CMAKE_EXTRA_ARGS ..
|
2017-03-21 12:35:51 +00:00
|
|
|
- make everything
|
2017-10-15 07:57:21 +00:00
|
|
|
- make run_tests
|
2017-09-05 14:00:50 +00:00
|
|
|
- make package_default
|
2017-10-15 07:57:21 +00:00
|
|
|
- cd ..; mkdir build_debug; cd build_debug
|
|
|
|
- cmake -Werror=dev -DCMAKE_BUILD_TYPE=Debug $CMAKE_EXTRA_ARGS ..
|
|
|
|
- make run_tests
|
2017-09-28 01:01:12 +00:00
|
|
|
- cd ..
|
2017-10-22 19:43:53 +00:00
|
|
|
- build/DDNet-Server shutdown
|
2017-03-21 12:35:51 +00:00
|
|
|
env:
|
|
|
|
global:
|
|
|
|
- CFLAGS="-Wdeclaration-after-statement -Werror"
|
|
|
|
- CXXFLAGS="-Werror"
|
2017-10-15 13:17:17 +00:00
|
|
|
branches:
|
|
|
|
except:
|
|
|
|
- staging.tmp
|
2018-04-09 08:27:31 +00:00
|
|
|
- testing.tmp
|