Skip to content

Upload reports to Codecov using C/C++

License

Notifications You must be signed in to change notification settings

codecov/example-c

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 

Repository files navigation

Codecov C/C++ Example

FOSSA Status

Guide

GitHub Actions Setup

Add to your workflow.

- name: Upload reports to Codecov
  run: |
    curl -Os https://uploader.codecov.io/latest/linux/codecov
    chmod +x codecov
    ./codecov -t ${CODECOV_TOKEN}

Produce Coverage Reports

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

Caveats

Private Repo

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.

Links

License

FOSSA Status

About

Upload reports to Codecov using C/C++

Topics

Resources

License

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages