Codecov

Code coverage done right.®

Welcome to Codecov Documentation. You'll find comprehensive guides and documentation to help you start working with Codecov as quickly as possible, as well as support if you get stuck. Let's jump right in!

Get Started
Ask A Question

Questions

Heroku CI support

Posted by Nicolas Girardin about a month ago

Hi guys!

Is Heroku CI supported?

I'm trying to run the codecov bash script but get a missing required properties message.

`` _____ _ / ____| | | | | ___ __| | ___ ___ _____ __ | | / _ \ / _ |/ \/ __/ \ \ / /
| || () | (_| | / (| () \ V /
__\/ _,|_|___/ \/
Bash-d109cc7

==> Heroku CI detected.
project root: .
--> token set from env
bash: line 755: hg: command not found
Yaml not found, that's ok! Learn more at http://docs.codecov.io/docs/codecov-yaml
==> Running gcov in . (disable via -X gcov)
==> Python coveragepy not found
==> Searching for coverage reports in:

+ .
-> Found 1 reports

==> Detecting git/mercurial file structure
==> Reading reports

+ ./coverage/clover.xml bytes=46610

==> Appending adjustments
http://docs.codecov.io/docs/fixing-reports
find: paths must precede expression: ./vendor/bin
Usage: find [-H] [-L] [-P] [-Olevel] [-D help|tree|search|stat|rates|opt|exec|time] [path...] [expression]

+ Found adjustments

==> Uploading reports
url: https://codecov.io
query: branch=my-branch&commit=&build=5f31e7ef-8bf7-4562-b503-40f0b6ca8bf4&build_url=&name=&tag=&slug=&yaml=&service=heroku&flags=&pr=&job=
-> Pinging Codecov
HTTP 400
missing required properties: ['commit']```

When running on Heroku CI, the source files are not inside a versioned path.

I can't find a way to get the current commit and pull request from the Heroku CI env variables for passing them to the -C and -P args.

Thanks,

Nicolas

Loading comments...