Explorar o código

Only load coveralls gem (which also starts simplecov) on CI

Dominik Sander %!s(int64=6) %!d(string=hai) anos
pai
achega
82c30acd5f
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      spec/rails_helper.rb

+ 1 - 1
spec/rails_helper.rb

@@ -3,7 +3,7 @@ ENV["RAILS_ENV"] ||= 'test'
 if ENV['COVERAGE']
   require 'simplecov'
   SimpleCov.start 'rails'
-else
+elsif ENV['CI'] == 'true'
   require 'coveralls'
   Coveralls.wear!('rails')
 end