Skip to content

Conversation

@jamestalmage
Copy link
Contributor

For PR's process.env.COVERALLS_REPO_TOKEN does not exist, so tap
will not automatically send data to coveralls. Hence our existing script:
npm run coveralls. Unfortuneately that seems to create problems
when merged onto master. In that case tap will
automatically push our coverage data, and the follow up script seems to fail.

To fix all this, I check the environment variable in .travis.yaml, and
manually push the coverage data if the environment variable does not exist.

Example Failing Build:
https://travis-ci.org/sindresorhus/ava/jobs/92855751

@jamestalmage jamestalmage force-pushed the fix-coverage-2 branch 2 times, most recently from 2e64378 to 04af8f0 Compare November 24, 2015 05:05
For PR's `process.env.COVERALLS_REPO_TOKEN` does not exist, so `tap`
will not automatically send data to coveralls. Hence our existing script:
`npm run coveralls`. Unfortuneately that seems to create problems
to create problems when merged onto master. In that case `tap` **will**
automatically push our coverage data, and the follow up push seems to fail.

To fix all this, I check the environment variable in .travis.yaml, and
manually push the coverage data if the environment variable does not exist.

https://travis-ci.org/sindresorhus/ava/jobs/92855751
jamestalmage added a commit that referenced this pull request Nov 24, 2015
@jamestalmage jamestalmage merged commit ffb750b into avajs:master Nov 24, 2015
@jamestalmage jamestalmage deleted the fix-coverage-2 branch November 24, 2015 07:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants