Skip to content

Commit

Permalink
Added Coveralls setup
Browse files Browse the repository at this point in the history
  • Loading branch information
norman committed Oct 30, 2013
1 parent 0064ef1 commit 2099996
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ gemfile:
- gemfiles/Gemfile.rails-stable.rb

before_script: 'bundle exec rake db:create db:up'
script: 'bundle exec rake test'
script: 'COVERAGE=true bundle exec rake test'
3 changes: 3 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ source 'https://rubygems.org'

gemspec

gem 'coveralls', require: false


# Database Configuration
group :development, :test do
platforms :jruby do
Expand Down
6 changes: 5 additions & 1 deletion test/helper.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
require "rubygems"
require "bundler/setup"
if ENV['COVERAGE']
require 'coveralls'
Coveralls.wear!
end

require "minitest/unit"
require "mocha/setup"
require "active_record"
Expand Down

0 comments on commit 2099996

Please sign in to comment.