Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

run coveralls only when COVERALLS env var is present #289

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.1.16.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