Adds support for tracking coverage on coveralls.io
This commit is contained in:
parent
aa8fc7c76b
commit
697d7287fe
|
@ -38,5 +38,6 @@ Gem::Specification.new do |s|
|
||||||
s.add_development_dependency 'yard', '~> 0.8'
|
s.add_development_dependency 'yard', '~> 0.8'
|
||||||
s.add_development_dependency 'rspec', '~> 3.1'
|
s.add_development_dependency 'rspec', '~> 3.1'
|
||||||
s.add_development_dependency 'kramdown', '~> 1.5'
|
s.add_development_dependency 'kramdown', '~> 1.5'
|
||||||
s.add_development_dependency 'simplecov', '~> 0.9'
|
s.add_development_dependency 'simplecov', '~> 0.9.2'
|
||||||
|
s.add_development_dependency 'coveralls', '~> 0.7.11'
|
||||||
end
|
end
|
||||||
|
|
|
@ -6,7 +6,9 @@ require 'faraday'
|
||||||
|
|
||||||
begin
|
begin
|
||||||
require 'simplecov'
|
require 'simplecov'
|
||||||
|
require 'coveralls'
|
||||||
|
|
||||||
|
SimpleCov.formatter = Coveralls::SimpleCov::Formatter
|
||||||
SimpleCov.start
|
SimpleCov.start
|
||||||
rescue LoadError
|
rescue LoadError
|
||||||
# SimpleCov missing, so just run specs with no coverage.
|
# SimpleCov missing, so just run specs with no coverage.
|
||||||
|
|
Loading…
Reference in New Issue