coverage fix for mustache + coveralls job id specification from drone

This commit is contained in:
The-EDev 2021-04-14 14:03:27 +03:00
parent 027db780bd
commit 7df4b998b6
2 changed files with 8 additions and 0 deletions

View File

@ -16,6 +16,7 @@ steps:
commands:
- export DEBIAN_FRONTEND=noninteractive
- export TRAVIS_BRANCH=$DRONE_SOURCE_BRANCH
- export TRAVIS_JOB_ID=$DRONE_BUILD_NUMBER
- apt-get -y update
- apt-get -y install libboost-all-dev doxygen mkdocs graphviz zlib1g-dev gcc clang make cmake python3 python3-pip git
- pip3 install mkdocs-material cpp-coveralls pyyaml
@ -105,6 +106,7 @@ steps:
- export DEBIAN_FRONTEND=noninteractive
- export DOXYFILE=$DRONE_BUILD_DIR/Doxyfile
- export TRAVIS_BRANCH=$DRONE_REPO_BRANCH
- export TRAVIS_JOB_ID=$DRONE_BUILD_NUMBER
- apt-get -y update
- apt-get -y install libboost-all-dev doxygen mkdocs graphviz zlib1g-dev gcc clang make cmake python3 python3-pip git
- pip3 install mkdocs-material cpp-coveralls pyyaml

View File

@ -11,6 +11,12 @@ set(TEST_SRCS
add_executable(mustachetest ${TEST_SRCS})
target_compile_options(mustachetest PRIVATE "${compiler_options}")
if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU")
set_target_properties(mustachetest PROPERTIES COMPILE_FLAGS "--coverage -fprofile-arcs -ftest-coverage")
target_link_libraries(mustachetest gcov)
endif()
file(COPY DIRECTORY . DESTINATION ${CMAKE_CURRENT_BINARY_DIR} FILES_MATCHING PATTERN "*.json")
add_custom_command(OUTPUT test.py