Closed olleolleolle closed 7 years ago
There is a note in this page: https://docs.codeclimate.com/v1.0/docs/travis-ci-ruby-test-coverage
addons:
code_climate:
repo_token: <token>
# regular test configuration
after_success:
- bundle exec codeclimate-test-reporter
Somehow, the encrypted ENV var does not get there.
@laserlemon Thanks for a great link.
@olleolleolle I'm going to take your primary commit and move it to a new PR so we can properly test the implementation. It sounds like a PR for a branch on the same repo will properly set secure ENV variables. Stand by! And thank you! 👏
@laserlemon Now were down to "start simplecov, avoid calling CodeClimate if not on a real branch".
@olleolleolle Closing in favor of #143. I don't mind if we always try to send stats to CodeClimate. If we're not on a repo-owned branch that will expose the secure ENV variable, it'll just skip that step quietly anyway.
This PR adds the
after_success
hook to Travis builds, to use the supported way of using CodeClimate.Read more at https://docs.codeclimate.com/v1.0/docs/travis-ci-ruby-test-coverage.
~Issue:
Cannot post results: environment variable CODECLIMATE_REPO_TOKEN must be set.
Is there a problem with thesecure
ENV var, somehow?~Update: Only send coverage information to CodeClimate if not on a PR.