killy971 / codecov-haskell

codecov.io support for haskell code coverage with hpc
http://hackage.haskell.org/package/codecov-haskell
BSD 3-Clause "New" or "Revised" License
29 stars 16 forks source link

Sending more env variables #1

Open stevepeak opened 10 years ago

stevepeak commented 10 years ago

I'll edit this message soon and elaborate, just needed to get it posted for the moment

Couple of env variables missing - here is a list of one's we are currently accepting per ci company: env variables ex

Thanks

killy971 commented 10 years ago

What is the behavior is any of these extra environment variable is missing?

Are the variable names in the url used to send the report the same as the variable names used in your python file? For example, should the url contain "build=123456", or "build_id=123456" as suggested by the original title of this issue?

stevepeak commented 10 years ago

So the build_id simply changed to build and it is used primarily to distinguish the build number in the user interface.

URL Params Explained

name desc
owner repo owner username
repo repo name
service ci company name
branch git bracnh
commit git commit
token codecov upload uuid
build ci build identifier, for matrix builds
package what tool is uploading, ex `codecov-haskell@v1.0.0
build_url ci company build url, ex https://...
travis_job_id travis job id
pull_request pull request #
killy971 commented 10 years ago

Thank you very much, maybe I'll just add the Travis related ones first, in version 0.1.1. You can add Haskell to the supported languages on Codecov if you're OK with the current version.

The simplest example usage for Travis CI is:

language: haskell
 ghc: 7.8
 script:
   - cabal configure --enable-tests --enable-library-coverage && cabal build && cabal test
 after_script:
   - cabal install codecov-haskell
   - codecov-haskell [options] [test-suite-names]

It would be good to also add a link to this repository for the documentation.

killy971 commented 10 years ago

Actually I've just noticed that someone is already successfully using codecov-haskell!

:arrow_right: https://codecov.io/github/Yuras

stevepeak commented 10 years ago

Thanks! I'll update the website to reflect this uploader. It's awesome to see a customer already use it :+1: Great job!