diff --git a/Gemfile b/Gemfile index 13d4a20..d32f007 100644 --- a/Gemfile +++ b/Gemfile @@ -48,16 +48,17 @@ group :test, :development do end group :test do - gem "rake", '~> 10.0.4' - gem 'factory_girl_rails', '~> 4.2.0' - gem 'capybara', '~> 2.2.0' - gem 'poltergeist', '~> 1.5.0' - gem 'database_cleaner', '~> 1.0.1' + gem "rake", '~> 10.0.4' + gem 'factory_girl_rails', '~> 4.2.0' + gem 'capybara', '~> 2.2.0' + gem 'poltergeist', '~> 1.5.0' + gem 'database_cleaner', '~> 1.0.1' gem 'guard' gem 'guard-rspec' - gem 'rb-inotify', '~> 0.9.0' - gem 'simplecov', '~> 0.7.1', :require => false - gem 'shoulda-matchers', '~> 2.4.0' + gem 'rb-inotify', '~> 0.9.0' + gem 'simplecov', '~> 0.7.1', require: false + gem 'shoulda-matchers', '~> 2.4.0' + gem 'coveralls', require: false end group :production do diff --git a/Gemfile.lock b/Gemfile.lock index c76c6bb..2a3af5a 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -78,6 +78,12 @@ GEM execjs coffee-script-source (1.6.3) 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) dalli (2.6.4) database_cleaner (1.0.1) @@ -237,6 +243,8 @@ GEM redis-namespace (1.3.2) redis (~> 3.0.4) request_store (1.0.5) + rest-client (1.6.7) + mime-types (>= 1.16) rspec-collection_matchers (0.0.2) rspec-expectations (>= 2.99.0.beta1) rspec-core (3.0.0.beta1) @@ -296,6 +304,8 @@ GEM activesupport (>= 3.0) sprockets (~> 2.8) temple (0.6.6) + term-ansicolor (1.2.2) + tins (~> 0.8) thin (1.5.1) daemons (>= 1.0.9) eventmachine (>= 0.12.6) @@ -305,6 +315,7 @@ GEM atomic tilt (1.4.1) timers (1.1.0) + tins (0.13.1) treetop (1.4.15) polyglot polyglot (>= 0.3.1) @@ -340,6 +351,7 @@ DEPENDENCIES capybara (~> 2.2.0) carrierwave (~> 0.8.0) coffee-rails (~> 4.0.1) + coveralls dalli (~> 2.6.2) database_cleaner (~> 1.0.1) dotenv-rails (~> 0.8) diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index 766bc48..742b218 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -1,7 +1,11 @@ -if ENV['COVERAGE'] +if ENV["CI"] && (!defined?(RUBY_ENGINE) || RUBY_ENGINE == "ruby") require 'simplecov' + require 'coveralls' + + SimpleCov.formatter = Coveralls::SimpleCov::Formatter SimpleCov.start 'rails' do add_group "Decorators", "app/decorators" + add_group "Presenters", "app/presenters" end end