alfert / coverex

Coverage Reports for Elixir
Other
101 stars 26 forks source link

Add support for Codecov #28

Open stevepeak opened 8 years ago

stevepeak commented 8 years ago

Hey there,

I'm the founder of Codecov and would like to have an upload option for customers to send reports to Codecov.

Here is an example upload:

curl -X POST -d '<json>' \
    https://codecov.io/upload/v2?service=travis&branch=$TRAVIS_BRANCH&commit=$TRAVIS_COMMIT&build=$TRAVIS_JOB_NUMBER&pr=$TRAVIS_PULL_REQUEST&job=$TRAVIS_JOB_ID&slug=$TRAVIS_REPO_SLUG&tag=$TRAVIS_TAG
{
  "coverage": {
    "filename": [null, 1, 0, ...], //option-1
    "filename_2": {  //option-2
      "1": 1,
      "3": 0
    }
  }
}

Option 1 list of [line_number_coverage] index [0] is always null, index[1] is line one, etc. Option 2 object of linenum: coverage

Full list of supported CI providers


I'm happy to help our where I can!

Cheers, Steve

stevepeak commented 8 years ago

Hey team! Checking in to see if we can get some help on this issue. Thank you 👍