Closed noahp closed 3 years ago
I like it, thanks! Just one more thing: can you describe this functionality in README.md
? Othewise, it's gonna be lost knowledge.
PS. Travis-CI integration would be great as well, if you're willing to do it; if not - I can handle it myself.
Ah, looks like the sanitizers require more recent versions of gcc / clang than travis has by default, and coverage compiler flags and coverage report generation is different for gcc vs clang :upside_down_face: ...
Going to have to try a few rounds before I get this working in travis, stay tuned!
Ah, the wonders of configuring CI environments - especially ones you don't own... take your time - it takes a certain amount of stubbornness :)
I've added a docker build instead of using built in travis stuff, see what you think!
The build fails right now because it's attempting to upload to a nonexistent coveralls repo (https://travis-ci.org/kosma/minmea/builds/450285255#L1721). If the coverage upload is interesting to you, you'd need to enable the coveralls repo (tested here: https://coveralls.io/github/noahp/minmea) or we can just disable the coveralls upload too :smile: .
Old PR, abandoning!
Add optional coverage output and if
lcov
is available, html report output.Coverage is enabled if the env variable
MINMEA_COVERAGE
is set to 1.Also add optional AddressSanitizer and UndefinedBehaviorSanitizer, only enabled if the env variable
MINMEA_ASAN
is set to 1.Example: