Fix bug where clang-tidy CI job always passes
This commit is contained in:
parent
098f6927d2
commit
8a5e0f6933
@ -20,4 +20,7 @@ else()
|
|||||||
endif()
|
endif()
|
||||||
|
|
||||||
# Run
|
# Run
|
||||||
execute_process(COMMAND run-clang-tidy -clang-tidy-binary ${CLANG_TIDY_EXECUTABLE} -p ${PROJECT_BINARY_DIR})
|
execute_process(COMMAND run-clang-tidy -clang-tidy-binary ${CLANG_TIDY_EXECUTABLE} -p ${PROJECT_BINARY_DIR} RESULTS_VARIABLE EXIT_CODE)
|
||||||
|
if(NOT EXIT_CODE STREQUAL 0)
|
||||||
|
message(FATAL_ERROR "Analysis failed")
|
||||||
|
endif()
|
||||||
|
Loading…
Reference in New Issue
Block a user