Test flag on CI

This commit is contained in:
Learath 2018-10-02 02:17:34 +02:00
parent 2696ac134c
commit 662d23d40b

View file

@ -52,6 +52,11 @@ jobs:
cd build
env CFLAGS="-Wdeclaration-after-statement -Werror" CXXFLAGS="-Werror" cmake -DDOWNLOAD_GTEST=ON ..
make everything
- run: |
mkdir build2
cd build2
env CFLAGS="-Wdeclaration-after-statement -Werror" CXXFLAGS="-Werror" cmake -DAUTOUPDATE=OFF -DDOWNLOAD_GTEST=ON ..
make everything
- persist-to-workspace:
root: ./
@ -72,6 +77,10 @@ jobs:
make run_tests
./DDNet-Server shutdown
- run: |
cd build2
make run_tests
workflows:
version: 2
build_and_test: