Skip to content

Commit

Permalink
ci: do not require codecov to pass
Browse files Browse the repository at this point in the history
  • Loading branch information
madebr committed Dec 12, 2018
1 parent 6f35cfd commit ea18050
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
codecov:
notify:
require_ci_to_pass: no
5 changes: 4 additions & 1 deletion cmake/modules/CodeCoverage.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -410,7 +410,7 @@ function(coverage_lcov_merge_files)
endfunction()

function(add_coverage_upload_target_codecov_io)
cmake_parse_arguments(CU "" "GITSHA1;GITBRANCH;NAME" "" ${ARGN})
cmake_parse_arguments(CU "" "GITSHA1;GITBRANCH;NAME;YAMLPATH" "" ${ARGN})
set(CAPTURE_FILES "${LCOV_DATA_PATH_INIT}/all_targets.info.upload" "${LCOV_DATA_PATH_CAPTURE}/all_targets.info.upload")

find_program(CURL_BIN curl)
Expand Down Expand Up @@ -443,6 +443,9 @@ function(add_coverage_upload_target_codecov_io)
if(CU_NAME)
list(APPEND EXTRA_ARGS -n "${CU_NAME}")
endif()
if(CU_YAMLPATH)
list(APPEND EXTRA_ARGS -y "${CU_YAMLPATH}")
endif()
foreach(CAPTURE_FILE ${CAPTURE_FILES})
list(APPEND EXTRA_ARGS -f "${CAPTURE_FILE}")
endforeach()
Expand Down
1 change: 1 addition & 0 deletions cmake_configure.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,7 @@ if(TEST_COVERAGE)
GITSHA1 "${GIT_SHA1}"
GITBRANCH "${GIT_BRANCH}"
NAME "${CODECOV_NAME}"
YAMLPATH "${PROJECT_SOURCE_DIR}/.codecov.yml"
)
endif()

Expand Down

0 comments on commit ea18050

Please sign in to comment.