Setup codecov
This commit is contained in:
parent
b318433361
commit
6400f5bc6d
|
@ -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'
|
||||
|
|
|
@ -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'
|
||||
|
|
Loading…
Reference in New Issue