Skip to content

Commit

Permalink
Setup codecov report in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
pseudomuto committed Jan 30, 2020
1 parent a5d04a2 commit 31dc0f0
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,7 @@ source 'http://rubygems.org'
# Bundler will treat runtime dependencies like base dependencies, and
# development dependencies will be added by default to the :development group.
gemspec

group :test do
gem 'codecov', require: false
end
8 changes: 8 additions & 0 deletions spec/spec_helper.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# frozen_string_literal: true

require 'simplecov'
SimpleCov.start

if ENV.fetch('CI', '') == 'true'
require 'codecov'
SimpleCov.formatter = SimpleCov::Formatter::Codecov
end

require 'shoulda-matchers'

RSpec.configure do |config|
Expand Down

0 comments on commit 31dc0f0

Please # to comment.