Upload reports to Codecov using C/C++
C
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.travis.yml
hello.c
readme.md

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

We are happy to help if you have any questions. Please contact email our Support at support@codecov.io