From 94bbe2bc095696888771e28da2b7a608447d2e13 Mon Sep 17 00:00:00 2001 From: heinrich5991 Date: Sun, 10 Mar 2019 16:25:16 +0100 Subject: [PATCH] Add Travis CI for macOS builds --- .travis.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 000000000..3f746d55f --- /dev/null +++ b/.travis.yml @@ -0,0 +1,18 @@ +os: osx +script: +- brew install sdl2 +- mkdir build; cd build +- cmake -Werror=dev -DDOWNLOAD_GTEST=ON .. +- make everything +- make run_tests +- make package_default +- cd .. +- mkdir build_debug; cd build_debug +- cmake -Werror=dev -DDOWNLOAD_GTEST=ON -DDEV=ON .. +- make run_tests +- cd .. +- build/teeworlds_srv shutdown +env: + global: + - CFLAGS="-Wdeclaration-after-statement -Werror" + - CXXFLAGS="-Werror"