mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
fc44bfcc76
Fix the style of our only test.
26 lines
777 B
YAML
26 lines
777 B
YAML
language: c++
|
|
sudo: false
|
|
dist: trusty
|
|
os:
|
|
- linux
|
|
- osx
|
|
addons:
|
|
apt:
|
|
packages:
|
|
- libfreetype6-dev
|
|
- libgtest-dev
|
|
- libsdl2-dev
|
|
script:
|
|
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then brew install sdl2; fi
|
|
- if [ "$TRAVIS_OS_NAME" != "osx" ]; then mkdir gtest_build; cmake -E chdir gtest_build cmake /usr/src/gtest; cmake --build gtest_build; fi
|
|
- mkdir build
|
|
- cd build
|
|
- 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
|
|
- make everything
|
|
- if [ "$TRAVIS_OS_NAME" != "osx" ]; then make run_tests; fi
|
|
env:
|
|
global:
|
|
- CFLAGS="-Wdeclaration-after-statement -Werror"
|
|
- CXXFLAGS="-Werror"
|