mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-05-02 05:04:08 +08:00
cmake add check
This commit is contained in:
parent
f00edc9442
commit
fb87165051
@ -4,9 +4,7 @@ install:
|
||||
- pip install --user cpp-coveralls
|
||||
script:
|
||||
- cmake -DCMAKE_BUILD_TYPE=Profile -DTESTING=ON -DFORMAT=ON .
|
||||
- make
|
||||
- make check_format
|
||||
- ctest -V
|
||||
- make check
|
||||
after_success:
|
||||
- cpp-coveralls -i matrix
|
||||
env:
|
||||
|
||||
@ -96,6 +96,11 @@ if(FORMAT)
|
||||
)
|
||||
endif()
|
||||
|
||||
if(TESTING AND FORMAT)
|
||||
add_custom_target(check COMMAND ${CMAKE_CTEST_COMMAND} --output-on-failure)
|
||||
add_dependencies(check test_build check_format)
|
||||
endif()
|
||||
|
||||
set(CPACK_PACKAGE_VERSION_MAJOR ${VERSION_MAJOR})
|
||||
set(CPACK_PACKAGE_VERSION_MINOR ${VERSION_MINOR})
|
||||
set(CPACK_PACKAGE_VERSION_PATCH ${VERSION_PATCH})
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user