Skip to content

Commit

Permalink
[api][webui] Switch from coveralls to codecov
Browse files Browse the repository at this point in the history
coveralls stopped merging results, try out a new
service.
  • Loading branch information
hennevogel committed Mar 23, 2017
1 parent e8de4e3 commit 6dab755
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 23 deletions.
2 changes: 2 additions & 0 deletions codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
fixes:
- "::src/api/"
2 changes: 1 addition & 1 deletion src/api/Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ group :test do
# to ensure a clean state for testing
gem 'database_cleaner', '>= 1.0.1'
# for test coverage reports
gem 'coveralls', require: false
gem 'codecov', require: false
gem 'simplecov', require: false
# for failing fast
gem 'minitest-fail-fast'
Expand Down
18 changes: 7 additions & 11 deletions src/api/Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,10 @@ GEM
activesupport
tzinfo
cocoon (1.2.9)
codecov (0.1.10)
json
simplecov
url
codemirror-rails (5.16.0)
railties (>= 3.0, < 6.0)
coderay (1.1.1)
Expand All @@ -84,12 +88,6 @@ GEM
coffee-script-source (1.11.1)
colorize (0.8.1)
concurrent-ruby (1.0.5)
coveralls (0.8.19)
json (>= 1.8, < 3)
simplecov (~> 0.12.0)
term-ansicolor (~> 1.3)
thor (~> 0.19.1)
tins (~> 1.6)
crack (0.4.3)
safe_yaml (~> 1.0.0)
crass (1.0.2)
Expand Down Expand Up @@ -289,7 +287,7 @@ GEM
sexp_processor (4.7.0)
shoulda-matchers (3.1.1)
activesupport (>= 4.0.0)
simplecov (0.12.0)
simplecov (0.14.1)
docile (~> 1.1.0)
json (>= 1.8, < 3)
simplecov-html (~> 0.10.0)
Expand All @@ -305,8 +303,6 @@ GEM
actionpack (>= 4.0)
activesupport (>= 4.0)
sprockets (>= 3.0.0)
term-ansicolor (1.4.0)
tins (~> 1.0)
test-unit (3.2.3)
power_assert
thinking-sphinx (3.3.0)
Expand All @@ -320,7 +316,6 @@ GEM
thread_safe (0.3.6)
tilt (2.0.5)
timecop (0.8.1)
tins (1.13.2)
tzinfo (1.2.2)
thread_safe (~> 0.1)
uglifier (3.0.1)
Expand All @@ -332,6 +327,7 @@ GEM
unicorn-rails (2.2.1)
rack
unicorn
url (0.3.2)
vcr (3.0.3)
voight_kampff (1.1.1)
rack (>= 1.4, < 3.0)
Expand Down Expand Up @@ -362,10 +358,10 @@ DEPENDENCIES
chunky_png
clockwork (>= 0.7)
cocoon
codecov
codemirror-rails
coffee-rails
colorize
coveralls
cssmin (>= 1.0.2)
daemons
dalli
Expand Down
5 changes: 2 additions & 3 deletions src/api/spec/rails_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,8 @@
require 'rspec/rails'
# for generating test coverage
require 'simplecov'
# for tracking test coverage on
# https://coveralls.io/github/openSUSE/open-build-service
require 'coveralls'
# for tracking test coverage
require 'codecov'
# for pundit policy
require 'pundit/rspec'

Expand Down
5 changes: 1 addition & 4 deletions src/api/spec/support/coverage.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
# start coverage tracking
Coveralls.wear_merged!('rails')

# SimpleCov configuration
SimpleCov.start 'rails' do
# NOTE: Keep filters in sync with test/test_helper.rb
Expand All @@ -10,5 +7,5 @@
add_filter '/lib/memory_debugger.rb'
add_filter '/lib/memory_dumper.rb'
merge_timeout 3600
formatter Coveralls::SimpleCov::Formatter
formatter SimpleCov::Formatter::Codecov
end
6 changes: 2 additions & 4 deletions src/api/test/test_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,12 @@
ENV['RAILS_ENV'] = 'test'

require 'simplecov'
require 'coveralls'
require 'codecov'
require "minitest/reporters"

Minitest::Reporters.use! Minitest::Reporters::SpecReporter.new

if ENV['DO_COVERAGE']
Coveralls.wear_merged!('rails')

SimpleCov.start 'rails' do
# NOTE: Keep filters in sync with spec/support/coverage.rb
add_filter '/app/indices/'
Expand All @@ -19,7 +17,7 @@
add_filter '/lib/memory_debugger.rb'
add_filter '/lib/memory_dumper.rb'
merge_timeout 3600
formatter Coveralls::SimpleCov::Formatter
formatter SimpleCov::Formatter::Codecov
end

SimpleCov.at_exit do
Expand Down

0 comments on commit 6dab755

Please sign in to comment.