Skip to content

Commit

Permalink
Add Coveralls, Gemnasium & Code Climate
Browse files Browse the repository at this point in the history
  • Loading branch information
Stefan Wrobel committed Sep 10, 2013
1 parent 4578055 commit 027336f
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 13 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
SpreeZeroStockProducts [![Build Status](https://travis-ci.org/swrobel/spree_zero_stock_products.png?branch=2-0-stable)](https://travis-ci.org/swrobel/spree_zero_stock_products)
Spree Zero Stock Products
======================
[![Build Status](https://travis-ci.org/swrobel/spree_zero_stock_products.png?branch=2-0-stable)](https://travis-ci.org/swrobel/spree_zero_stock_products) [![Dependency Status](https://gemnasium.com/swrobel/spree_zero_stock_products.png)](https://gemnasium.com/swrobel/spree_zero_stock_products) [![Coverage Status](https://coveralls.io/repos/swrobel/spree_zero_stock_products/badge.png)](https://coveralls.io/r/swrobel/spree_zero_stock_products) [![Code Climate](https://codeclimate.com/github/swrobel/spree_zero_stock_products.png)](https://codeclimate.com/github/swrobel/spree_zero_stock_products)

Restore the `show_zero_stock_products` preference & related functionality in Spree 2.0+

Expand Down
27 changes: 15 additions & 12 deletions spec/spec_helper.rb
Original file line number Diff line number Diff line change
@@ -1,15 +1,18 @@
unless ENV['TRAVIS']
# Run Coverage report
require 'simplecov'
SimpleCov.start do
add_filter 'spec/dummy'
add_group 'Controllers', 'app/controllers'
add_group 'Helpers', 'app/helpers'
add_group 'Mailers', 'app/mailers'
add_group 'Models', 'app/models'
add_group 'Views', 'app/views'
add_group 'Libraries', 'lib'
end
# Run Coverage report
require 'simplecov'
require 'coveralls'
SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter[
SimpleCov::Formatter::HTMLFormatter,
Coveralls::SimpleCov::Formatter
]
SimpleCov.start do
add_filter 'spec/dummy'
add_group 'Controllers', 'app/controllers'
add_group 'Helpers', 'app/helpers'
add_group 'Mailers', 'app/mailers'
add_group 'Models', 'app/models'
add_group 'Views', 'app/views'
add_group 'Libraries', 'lib'
end

# Configure Rails Environment
Expand Down
1 change: 1 addition & 0 deletions spree_zero_stock_products.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,5 @@ Gem::Specification.new do |s|
s.add_development_dependency 'rspec-rails', '~> 2.13'
s.add_development_dependency 'simplecov'
s.add_development_dependency 'durable_decorator_rails', '~> 0.1.0'
s.add_development_dependency 'coveralls'
end

0 comments on commit 027336f

Please sign in to comment.