if ENV['SIMPLECOV']
  require 'simplecov'
  SimpleCov.start
end

if ENV['JENKINS_URL']
  require 'codeclimate-test-reporter'
  CodeClimate::TestReporter.start

  require 'coveralls'
  Coveralls.wear!
end

unless ENV['SIMPLECOV'].nil?
  require 'simplecov'
  SimpleCov.start
end

unless ENV['CODECLIMATE_REPO_TOKEN'].nil?
  require 'codeclimate-test-reporter'
  CodeClimate::TestReporter.start
end

require 'coveralls'
Coveralls.wear! if Coveralls.will_run?

Fix test coverage reporting during CI
Fix test coverage reporting during CI
