Codecov C/C++ Example
Add to your
language: c after_success: - bash <(curl -s https://codecov.io/bash)
Produce Coverage Reports
gcov reports for all your files covered. To create these files all you need to do is to add the
-coverage flag to
clang when building.
clang -coverage -O0 hello.c -o hello ./hello gcov hello.c
Repository tokens are required for (a) all private repos, (b) public repos not using Travis-CI, CircleCI or AppVeyor. Find your repository token at Codecov and provide via appending
-t <your upload token> to you where you upload reports.