Skip to content

Commit

Permalink
Merge pull request #8 from platanus/coveralls
Browse files Browse the repository at this point in the history
chore(): configure coveralls
  • Loading branch information
blackjid committed Mar 31, 2017
2 parents 31d68d6 + 8b3643e commit 4773757
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 3 deletions.
1 change: 1 addition & 0 deletions .coveralls.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
service_name: travis-ci
5 changes: 3 additions & 2 deletions power_types.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ Gem::Specification.new do |spec|
spec.authors = ["Ignacio Baixas", "Felipe Balart"]
spec.email = ["ignacio@platan.us", "felipe@platan.us"]

spec.summary = %q{Power Types for Rails by Platanus}
spec.description = %q{Power Types for Rails by Platanus}
spec.summary = "Power Types for Rails by Platanus"
spec.description = "Power Types for Rails by Platanus"
spec.homepage = "https://github.com/platanus/power-types"
spec.license = "MIT"

Expand All @@ -30,4 +30,5 @@ Gem::Specification.new do |spec|
spec.add_development_dependency "pry-remote", "~> 0.1"
spec.add_development_dependency "pry-byebug", "~> 3.2"
spec.add_development_dependency "pry-nav", "~> 0.2"
spec.add_development_dependency "coveralls"
end
16 changes: 15 additions & 1 deletion spec/spec_helper.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
require 'simplecov'
require 'coveralls'

formatters = [SimpleCov::Formatter::HTMLFormatter, Coveralls::SimpleCov::Formatter]
SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter::new(formatters)

SimpleCov.start do
add_filter { |src| !(src.filename =~ /lib/) }
add_filter "spec.rb"
end

$LOAD_PATH.unshift File.expand_path('../../lib', __FILE__)
require 'pry'
require 'power_types'
Expand All @@ -12,4 +23,7 @@
config.after do
FileUtils.rm_r Dir.glob File.join(SPEC_TMP_PATH, '*.*')
end
end

config.filter_run focus: true
config.run_all_when_everything_filtered = true
end

0 comments on commit 4773757

Please sign in to comment.