Navigation Menu

Skip to content

Commit

Permalink
CI: Add code coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
maximeg committed May 31, 2017
1 parent 2e86c3d commit defa40e
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Gemfile
Expand Up @@ -10,3 +10,7 @@ group :local do
gem "guard-rspec", require: false
gem "terminal-notifier-guard", require: false # OS X
end

# Code coverage
gem "codecov", require: false
gem "simplecov", require: false
2 changes: 2 additions & 0 deletions codecov.yml
@@ -0,0 +1,2 @@
ignore:
- "spec/**/*"
10 changes: 10 additions & 0 deletions spec/spec_helper.rb
@@ -1,5 +1,15 @@
# frozen_string_literal: true

require "simplecov"
SimpleCov.start do
add_filter("spec/")
end

if ENV["CI"] == "true"
require "codecov"
SimpleCov.formatter = SimpleCov::Formatter::Codecov
end

require "bundler/setup"
require "email_inquire"

Expand Down

0 comments on commit defa40e

Please sign in to comment.