Skip to content

codecov/example-fortran

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 

Codecov Fortran Example

Guide

Travis Setup

Add to your .travis.yml file.

language: c

after_success:
 - bash <(curl -s https://codecov.io/bash)

Produce Coverage Reports

Fortran outpus gcov reports for all your files covered. To create these files all you need to do is to add the -fprofile-arcs -ftest-coverage flags to gfortran when building.

gfortran -fprofile-arcs -ftest-coverage -O0 hello.f90 -o hello
./hello

For a slightly more complicated version check out the json-fortran project.

Caveats

Private Repos

Add to your .travis.yml file.

after_success:
  - bash <(curl -s https://codecov.io/bash) -t uuid-repo-token
  1. More documentation at https://docs.codecov.io
  2. Configure codecov through the codecov.yml https://docs.codecov.io/docs/codecov-yaml

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

About

Example repo for uploading reports to Codecov

Resources

License

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published