Upload reports to Codecov using C/C++
C
Latest commit bf67ed7 Jun 26, 2015 @stevepeak stevepeak Update readme.md
Permalink
Failed to load latest commit information.
.travis.yml ft May 4, 2015
hello.c added tests May 4, 2015
readme.md Update readme.md Jun 26, 2015

readme.md

Codecov C/C++ Example

https://codecov.io @codecov hello@codecov.io

This repository serves as an example on how to use Codecov Global for C/C++.

Usage

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

Travis CI

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).

Private Repos

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