Skip to content

Commit

Permalink
Merge pull request #289 from colby-swandale/colby/prevent-multiple-co…
Browse files Browse the repository at this point in the history
…veralls-comments

run coveralls only when COVERALLS env var is present
  • Loading branch information
hsbt authored Nov 20, 2018
2 parents 2b255bb + 4487960 commit 628633c
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
6 changes: 6 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,12 @@ rvm:
- ruby-head
- jruby-9.2.4.0
- jruby-head

matrix:
include:
- rvm: 2.5.3
env: COVERALLS=yes

before_script:
- unset JRUBY_OPTS
- unset _JAVA_OPTIONS
Expand Down
8 changes: 5 additions & 3 deletions test/helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,11 @@
$:.unshift File.expand_path("../../lib", __FILE__)

begin
gem "coveralls"
require "coveralls"
Coveralls.wear!
if ENV['COVERALLS']
gem "coveralls"
require "coveralls"
Coveralls.wear!
end
rescue Gem::LoadError
end

Expand Down

0 comments on commit 628633c

Please sign in to comment.