Skip to content

mdeniz/example-c

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

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

About

Upload reports to Codecov using C/C++

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 100.0%