Run the server on CI (#910)

This commit is contained in:
Learath2 2017-10-22 21:43:53 +02:00 committed by heinrich5991
parent cb00a294b8
commit d6bcc4fe01
3 changed files with 8 additions and 0 deletions

View file

@ -22,6 +22,7 @@ script:
- cmake -Werror=dev -DCMAKE_BUILD_TYPE=Debug $CMAKE_EXTRA_ARGS ..
- make run_tests
- cd ..
- build/DDNet-Server shutdown
env:
global:
- CFLAGS="-Wdeclaration-after-statement -Werror"

View file

@ -21,6 +21,8 @@ test_script:
- cmd: cmake --build build64 --config Debug --target run_tests
- cmd: cmake --build build32 --config Release --target run_tests
- cmd: cmake --build build64 --config Release --target run_tests
- cmd: build32\Release\DDNet-Server shutdown
- cmd: build64\Release\DDNet-Server shutdown
after_build:
- cmd: cmake --build build32 --config Release --target package
@ -34,6 +36,7 @@ environment:
artifacts:
- path: build*/DDNet-*.zip
name: DDNet
branches:
except:
- staging.tmp

View file

@ -44,6 +44,10 @@ test:
- |
cd build
make run_tests
./DDNet-Server shutdown
- |
cd build
make package
mv DDNet-*.tar.* ${CIRCLE_ARTIFACTS}