Enable coveralls.io integration

This commit is contained in:
Marcin Kulik 2014-02-01 11:02:06 +01:00
parent b099cb76d3
commit 0be6410acb
3 changed files with 26 additions and 9 deletions

17
Gemfile
View File

@ -48,16 +48,17 @@ group :test, :development do
end end
group :test do group :test do
gem "rake", '~> 10.0.4' gem "rake", '~> 10.0.4'
gem 'factory_girl_rails', '~> 4.2.0' gem 'factory_girl_rails', '~> 4.2.0'
gem 'capybara', '~> 2.2.0' gem 'capybara', '~> 2.2.0'
gem 'poltergeist', '~> 1.5.0' gem 'poltergeist', '~> 1.5.0'
gem 'database_cleaner', '~> 1.0.1' gem 'database_cleaner', '~> 1.0.1'
gem 'guard' gem 'guard'
gem 'guard-rspec' gem 'guard-rspec'
gem 'rb-inotify', '~> 0.9.0' gem 'rb-inotify', '~> 0.9.0'
gem 'simplecov', '~> 0.7.1', :require => false gem 'simplecov', '~> 0.7.1', require: false
gem 'shoulda-matchers', '~> 2.4.0' gem 'shoulda-matchers', '~> 2.4.0'
gem 'coveralls', require: false
end end
group :production do group :production do

View File

@ -78,6 +78,12 @@ GEM
execjs execjs
coffee-script-source (1.6.3) coffee-script-source (1.6.3)
connection_pool (1.2.0) connection_pool (1.2.0)
coveralls (0.7.0)
multi_json (~> 1.3)
rest-client
simplecov (>= 0.7)
term-ansicolor
thor
daemons (1.1.9) daemons (1.1.9)
dalli (2.6.4) dalli (2.6.4)
database_cleaner (1.0.1) database_cleaner (1.0.1)
@ -237,6 +243,8 @@ GEM
redis-namespace (1.3.2) redis-namespace (1.3.2)
redis (~> 3.0.4) redis (~> 3.0.4)
request_store (1.0.5) request_store (1.0.5)
rest-client (1.6.7)
mime-types (>= 1.16)
rspec-collection_matchers (0.0.2) rspec-collection_matchers (0.0.2)
rspec-expectations (>= 2.99.0.beta1) rspec-expectations (>= 2.99.0.beta1)
rspec-core (3.0.0.beta1) rspec-core (3.0.0.beta1)
@ -296,6 +304,8 @@ GEM
activesupport (>= 3.0) activesupport (>= 3.0)
sprockets (~> 2.8) sprockets (~> 2.8)
temple (0.6.6) temple (0.6.6)
term-ansicolor (1.2.2)
tins (~> 0.8)
thin (1.5.1) thin (1.5.1)
daemons (>= 1.0.9) daemons (>= 1.0.9)
eventmachine (>= 0.12.6) eventmachine (>= 0.12.6)
@ -305,6 +315,7 @@ GEM
atomic atomic
tilt (1.4.1) tilt (1.4.1)
timers (1.1.0) timers (1.1.0)
tins (0.13.1)
treetop (1.4.15) treetop (1.4.15)
polyglot polyglot
polyglot (>= 0.3.1) polyglot (>= 0.3.1)
@ -340,6 +351,7 @@ DEPENDENCIES
capybara (~> 2.2.0) capybara (~> 2.2.0)
carrierwave (~> 0.8.0) carrierwave (~> 0.8.0)
coffee-rails (~> 4.0.1) coffee-rails (~> 4.0.1)
coveralls
dalli (~> 2.6.2) dalli (~> 2.6.2)
database_cleaner (~> 1.0.1) database_cleaner (~> 1.0.1)
dotenv-rails (~> 0.8) dotenv-rails (~> 0.8)

View File

@ -1,7 +1,11 @@
if ENV['COVERAGE'] if ENV["CI"] && (!defined?(RUBY_ENGINE) || RUBY_ENGINE == "ruby")
require 'simplecov' require 'simplecov'
require 'coveralls'
SimpleCov.formatter = Coveralls::SimpleCov::Formatter
SimpleCov.start 'rails' do SimpleCov.start 'rails' do
add_group "Decorators", "app/decorators" add_group "Decorators", "app/decorators"
add_group "Presenters", "app/presenters"
end end
end end