mirror of
https://github.com/CrowCpp/Crow.git
synced 2024-06-07 21:10:44 +00:00
coverage fix for mustache + coveralls job id specification from drone
This commit is contained in:
parent
027db780bd
commit
7df4b998b6
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user