Skip to content

Commit

Permalink
Add support for coveralls.io
Browse files Browse the repository at this point in the history
  • Loading branch information
kentaro committed Mar 19, 2013
1 parent d38dd02 commit f148ff7
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 2 deletions.
1 change: 1 addition & 0 deletions .coveralls.yml
@@ -0,0 +1 @@
service-name: travis-ci
1 change: 1 addition & 0 deletions Gemfile
Expand Up @@ -62,6 +62,7 @@ group :development do
gem 'rake'

gem 'simplecov'
gem 'coveralls', require: false
end
end

Expand Down
10 changes: 10 additions & 0 deletions Gemfile.lock
Expand Up @@ -197,6 +197,13 @@ GEM
coffee-script-source
execjs
coffee-script-source (1.6.1)
colorize (0.5.8)
coveralls (0.6.2)
colorize
multi_json (~> 1.3)
rest-client
simplecov (>= 0.7)
thor
daemons (1.1.9)
database_cleaner (0.9.1)
debug_inspector (0.0.2)
Expand Down Expand Up @@ -307,6 +314,8 @@ GEM
rdoc (3.12.2)
json (~> 1.4)
ref (1.0.2)
rest-client (1.6.7)
mime-types (>= 1.16)
rubyzip (0.9.9)
sass (3.2.7)
selenium-webdriver (2.31.0)
Expand Down Expand Up @@ -366,6 +375,7 @@ DEPENDENCIES
capistrano_colors
capybara (~> 2.0.0)
coffee-rails!
coveralls
database_cleaner
factory_girl
guard
Expand Down
9 changes: 7 additions & 2 deletions spec/spec_helper.rb
@@ -1,7 +1,12 @@
ENV["RAILS_ENV"] ||= 'test'

require 'simplecov'
SimpleCov.start 'rails'
if ENV['TRAVIS']
require 'coveralls'
Coveralls.wear!
else
require 'simplecov'
SimpleCov.start 'rails'
end

require File.expand_path("../../config/environment", __FILE__)

Expand Down

0 comments on commit f148ff7

Please sign in to comment.