Skip to content

Commit

Permalink
Merge pull request #101 from fgrehm/codecov
Browse files Browse the repository at this point in the history
Setup codecov report in CI
  • Loading branch information
pseudomuto authored Jan 30, 2020
2 parents c568dc8 + 31dc0f0 commit 86aab8e
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 86aab8e

Please # to comment.