I’m trying to setup codecov in my (C/C++ project)[GitHub - sys-bio/libOmexMeta: libOmexMeta is a library aimed at providing developer-level support for reading, writing, editing and managing semantic annotations for biosimulation models.] with travis. I finally figured out how to exclude all non-project source files only to realize that literally all of my tested files show up red in the codecov chart. Given this codecov yaml (see below), could anybody suggest why there are no coverage statistics for my source files?
I’m using a cmake script with --WITH_COVERAGE
flag which adds the --coverage
flag:
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} --coverage")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} --coverage")
Then travis is building my project with these flags active and then uploading the information - or rather should be.
Thanks
Ciaran
{
"codecov": {
"bot": "CiaranWelsh",
"branch": "master",
"ci": [
"travis.org"
],
"require_ci_to_pass": true,
"token": "03230181-dc42-4e8c-****-4669****066"
},
"comment": {
"behavior": "default",
"branches": [
"^master$"
],
"layout": "header"
},
"coverage": {
"precision": 2,
"range": [
70.0,
100.0
],
"round": "down"
},
"ignore": [
"(?s:tests/.*/[^\\/]+)\\Z",
"(?s:src/redland/raptor2\\-2\\.0\\.15/.*/[^\\/]+)\\Z",
"(?s:src/redland/rasqal\\-0\\.9\\.33/.*/[^\\/]+)\\Z",
"(?s:src/redland/redland\\-1\\.0\\.17/.*/[^\\/]+)\\Z",
"(?s:src/redland/RedlandAPIWrapper/test/[^\\/]+)\\Z",
"(?s:cmake\\-build\\-release\\-wsl\\-ubuntu1804/.*/[^\\/]+)\\Z",
"(?s:third_party/.*/[^\\/]+)\\Z",
"(?s:cmake\\-build\\-release\\-wsl\\-ubuntu1804/src/redland/CMakeFiles/redland\\-combined\\-static\\.dir/raptor2\\-2\\.0\\.15.*/[^\\/]+)\\Z",
"(?s:cmake\\-build\\-release\\-wsl\\-ubuntu1804/src/redland/CMakeFiles/redland\\-combined\\-static\\.dir/rasqal\\-0\\.9\\.33.*/[^\\/]+)\\Z",
"(?s:cmake\\-build\\-release\\-wsl\\-ubuntu1804/src/redland/CMakeFiles/redland\\-combined\\-static\\.dir/redland\\-1\\.0\\.17.*/[^\\/]+)\\Z",
"(?s:cmake\\-build\\-release\\-wsl\\-ubuntu1804/tests/.*/[^\\/]+)\\Z",
"(?s:cmake\\-build\\-release\\-wsl\\-ubuntu1804/third_party/.*/[^\\/]+)\\Z"
],
"parsers": {
"gcov": {
"branch_detection": {
"conditional": true,
"loop": true,
"macro": false,
"method": false
}
}
}
}