ddnet/.travis.yml
heinrich5991 83742a98ca List all source files instead of globbing them in CMakeLists.txt
This seems to be wanted by CMake, it results in never having to re-run
`cmake`.

See e.g. https://stackoverflow.com/a/18538444/870079.
2017-07-30 11:41:52 +02:00

22 lines
353 B
YAML

language: c++
sudo: false
dist: trusty
os:
- linux
- osx
addons:
apt:
packages:
- libfreetype6-dev
- libsdl2-dev
script:
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then brew install sdl2; fi
- mkdir build
- cd build
- cmake -Werror=dev ..
- make everything
env:
global:
- CFLAGS="-Wdeclaration-after-statement -Werror"
- CXXFLAGS="-Werror"