mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 01:58:19 +00:00
Run header guards check at the start of the CI script
This commit is contained in:
parent
6381a33344
commit
1abe6b0a0b
|
@ -11,6 +11,7 @@ addons:
|
|||
- libgtest-dev
|
||||
- libsdl2-dev
|
||||
script:
|
||||
- python scripts/check_header_guards.py
|
||||
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then CMAKE_EXTRA_ARGS="-DDOWNLOAD_GTEST=ON"; fi
|
||||
- if [ "$TRAVIS_OS_NAME" != "osx" ]; then CMAKE_EXTRA_ARGS="-DGTEST_LIBRARY=../gtest_build/libgtest.a -DGTEST_MAIN_LIBRARY=../gtest_build/libgtest_main.a"; mkdir gtest_build; cmake -E chdir gtest_build cmake /usr/src/gtest; cmake --build gtest_build; fi
|
||||
- mkdir build; cd build
|
||||
|
@ -23,7 +24,6 @@ script:
|
|||
- make run_tests
|
||||
- cd ..
|
||||
- build/DDNet-Server shutdown
|
||||
- python scripts/check_header_guards.py
|
||||
env:
|
||||
global:
|
||||
- CFLAGS="-Wdeclaration-after-statement -Werror"
|
||||
|
|
|
@ -4,6 +4,8 @@ before_build:
|
|||
- cmd: |
|
||||
git submodule update --init
|
||||
|
||||
scripts\check_header_guards.py
|
||||
|
||||
md build32 & cd build32
|
||||
cmake -Werror=dev -G "Visual Studio 14 2015" ..
|
||||
cd ..
|
||||
|
@ -29,7 +31,6 @@ test_script:
|
|||
cd build64
|
||||
Release\DDNet-Server shutdown
|
||||
cd ..
|
||||
- cmd: scripts\check_header_guards.py
|
||||
|
||||
after_build:
|
||||
- cmd: cmake --build build32 --config Release --target package
|
||||
|
|
|
@ -13,6 +13,8 @@ checkout:
|
|||
## Customize test commands
|
||||
compile:
|
||||
override:
|
||||
- python scripts/check_header_guards.py
|
||||
|
||||
- |
|
||||
mkdir build
|
||||
cd build
|
||||
|
@ -26,8 +28,6 @@ test:
|
|||
make run_tests
|
||||
./DDNet-Server shutdown
|
||||
|
||||
- python scripts/check_header_guards.py
|
||||
|
||||
- |
|
||||
cd build
|
||||
make package
|
||||
|
|
Loading…
Reference in a new issue