mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-20 16:53:34 +08:00
cmake add check
This commit is contained in:
+1
-3
@@ -4,9 +4,7 @@ install:
|
|||||||
- pip install --user cpp-coveralls
|
- pip install --user cpp-coveralls
|
||||||
script:
|
script:
|
||||||
- cmake -DCMAKE_BUILD_TYPE=Profile -DTESTING=ON -DFORMAT=ON .
|
- cmake -DCMAKE_BUILD_TYPE=Profile -DTESTING=ON -DFORMAT=ON .
|
||||||
- make
|
- make check
|
||||||
- make check_format
|
|
||||||
- ctest -V
|
|
||||||
after_success:
|
after_success:
|
||||||
- cpp-coveralls -i matrix
|
- cpp-coveralls -i matrix
|
||||||
env:
|
env:
|
||||||
|
|||||||
@@ -96,6 +96,11 @@ if(FORMAT)
|
|||||||
)
|
)
|
||||||
endif()
|
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_MAJOR ${VERSION_MAJOR})
|
||||||
set(CPACK_PACKAGE_VERSION_MINOR ${VERSION_MINOR})
|
set(CPACK_PACKAGE_VERSION_MINOR ${VERSION_MINOR})
|
||||||
set(CPACK_PACKAGE_VERSION_PATCH ${VERSION_PATCH})
|
set(CPACK_PACKAGE_VERSION_PATCH ${VERSION_PATCH})
|
||||||
|
|||||||
Reference in New Issue
Block a user