Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add partial automated support for Heroku CI builds
Heroku CI currently exposes the following environment variables during CI builds: - `HEROKU_TEST_RUN_BRANCH`: A string representing the branch of the commit under test - `HEROKU_TEST_RUN_COMMIT_VERSION`: A string representing the commit version under test (This is the SHA in most cases) - `HEROKU_TEST_RUN_ID`: A string uuid representing the unique ID of the test run source: https://devcenter.heroku.com/articles/heroku-ci#configuration-using-app-json The Code Climate test reporter relies on a git committed at timestamp to reliably render accurate test coverage annotations on codeclimate.com and on github.com via the browser extension. For now, we can automatically apply the environment variables supported by Heroku CI, but a couple others will have to be manually supplied by the user: ``` export CI_NAME="heroku" export GIT_COMMITTED_AT="$(date +%s)" ``` Related to: #226
- Loading branch information