Setup codecov

This commit is contained in:
Anil Maurya 2019-09-01 20:08:48 +05:30 committed by Anil Kumar Maurya
parent b318433361
commit 6400f5bc6d
2 changed files with 12 additions and 0 deletions

View File

@ -23,6 +23,8 @@ Gem::Specification.new do |s|
s.add_development_dependency 'rspec', ">= 3"
s.add_development_dependency 'generator_spec'
s.add_development_dependency 'appraisal'
s.add_development_dependency "simplecov"
s.add_development_dependency "codecov", ">= 0.1.10"
# debugging
# s.add_development_dependency 'debugger'

View File

@ -1,3 +1,13 @@
require 'simplecov'
SimpleCov.start do
add_filter '/spec/'
end
if ENV['CI'] == 'true'
require 'codecov'
SimpleCov.formatter = SimpleCov::Formatter::Codecov
end
$LOAD_PATH.unshift(File.expand_path(File.dirname(__FILE__)))
$LOAD_PATH.unshift(File.expand_path(File.join(File.dirname(__FILE__), '..', 'lib')))
require 'aasm'