Skip to content

Commit

Permalink
Merge pull request #2189 from ekylibre/feature/codecov-instead-of-cov…
Browse files Browse the repository at this point in the history
…eralls

Use CodeCov to track code coverage instead of Coveralls
  • Loading branch information
Aquaj committed Sep 13, 2017
2 parents 217fb52 + 98a8f19 commit e814ac0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ group :test do
gem 'selenium-webdriver'

gem 'codacy-coverage', require: false
gem 'coveralls', '>= 0.6', require: false
gem 'codecov', require: false
gem 'database_cleaner'
gem 'simplecov', require: false

Expand Down
9 changes: 3 additions & 6 deletions test/test_helper.rb
Original file line number Diff line number Diff line change
@@ -1,20 +1,17 @@
if ENV['CI']
require 'codacy-coverage'
require 'coveralls'
require 'codecov'
else
require 'simplecov'
end
ENV['RAILS_ENV'] ||= 'test'

if ENV['CI']
Coveralls.setup!

SimpleCov.formatters = [
Codacy::Formatter,
Coveralls::SimpleCov::Formatter
SimpleCov::Formatter::Codecov,
Codacy::Formatter
]

Coveralls.start!('rails') unless ENV['COVERALL'] == 'off'
SimpleCov.start
else
SimpleCov.start do
Expand Down

0 comments on commit e814ac0

Please sign in to comment.