Skip to content

Commit 3ebccc6

Browse files
committed
Code coverage on a single build
Previously, code coverage was pushed to Code Climate on both builds done in Travis CI. This caused Code Climate to report erroneously low coverage values. This change ensures that only the 1.9.3 build pushes code coverage to Code Climate.
1 parent 97cac3a commit 3ebccc6

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

.travis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ language: ruby
33
rvm:
44
- 2.0.0
55
- 1.9.3
6+
before_script: "if [[ $TRAVIS_RUBY_VERSION != '1.9.3' || $TRAVIS_SECURE_ENV_VARS != 'true' ]]; then unset CODECLIMATE_REPO_TOKEN; fi"
67
notifications:
78
webhooks: http://ec2-54-229-6-54.eu-west-1.compute.amazonaws.com/projects/b7a8069c-f991-409e-8953-1b4365824fec/status
89
env:

0 commit comments

Comments
 (0)