Skip to content

Commit 7271736

Browse files
authored
Merge pull request #33 from stephengroat/patch-1
add codecov to show coverage
2 parents 7588d7d + c553aa3 commit 7271736

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

Gemfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,5 @@ gemspec
33

44
group :test do
55
gem 'rake', '< 11'
6+
gem 'codecov'
67
end

spec/spec_helper.rb

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
require 'simplecov'
2+
SimpleCov.start
3+
if ENV['CI'] == 'true'
4+
require 'codecov'
5+
SimpleCov.formatter = SimpleCov::Formatter::Codecov
6+
end
7+
18
$LOAD_PATH << File.join(File.dirname(__FILE__), '..', 'lib')
29

310
require 'rubygems'

0 commit comments

Comments
 (0)