https://codecov.io | @codecov | [email protected] |
---|
This repository serves as an example on how to use Codecov Global for C/C++.
C/C++ output gcov
reports for all your files covered. To create these files all you need to do is to add the -coverage
flag to gcc
or clang
when building.
clang -coverage -O0 hello.c -o hello
./hello
gcov hello.c
Add to your .travis.yml
file.
after_success:
- bash <(curl -s https://codecov.io/bash)
All other CI you can simply run
bash <(curl -s https://codecov.io/bash)
.
Add to your .travis.yml
file.
env:
global:
- CODECOV_TOKEN=:uuid-repo-token
after_success:
- bash <(curl -s https://codecov.io/bash)
View source and learn more about Codecov Global Uploader