Skip to content

Commit

Permalink
add coveralls support
Browse files Browse the repository at this point in the history
  • Loading branch information
albfan committed Oct 11, 2015
1 parent b6a1c5a commit a6f4861
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion bashcov.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ Gem::Specification.new do |gem|
gem.require_paths = ["lib"]

gem.add_dependency "simplecov", "~> 0.10.0"
gem.add_runtime_dependency "coveralls", ">= 0", ">= 0"

gem.add_development_dependency "rake"
gem.add_development_dependency "rspec", "~> 3"
Expand All @@ -27,5 +28,4 @@ Gem::Specification.new do |gem|
gem.add_development_dependency "cane"
gem.add_development_dependency "rubocop"
gem.add_development_dependency "yard"
gem.add_development_dependency "coveralls"
end
5 changes: 5 additions & 0 deletions bin/bashcov
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,13 @@ status = runner.run
coverage = runner.result

require "simplecov"
require "coveralls"

SimpleCov.command_name Bashcov.name
SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter[
SimpleCov::Formatter::HTMLFormatter,
Coveralls::SimpleCov::Formatter
]
SimpleCov.root Bashcov.root_directory
SimpleCov::Result.new(coverage).format!

Expand Down

0 comments on commit a6f4861

Please sign in to comment.