Skip to content

Commit

Permalink
Only load Coveralls in Travis CI
Browse files Browse the repository at this point in the history
  • Loading branch information
nertzy committed May 31, 2013
1 parent 9bac51c commit 59c5cb2
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
4 changes: 3 additions & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@ gem "activerecord-jdbcpostgresql-adapter", :platform => :jruby
gem "activerecord", ENV["ACTIVE_RECORD_VERSION"] if ENV["ACTIVE_RECORD_VERSION"]
gem "activerecord", :github => "rails", :branch => ENV["ACTIVE_RECORD_BRANCH"] if ENV["ACTIVE_RECORD_BRANCH"]

gem 'coveralls', :require => false, :platform => :mri_20
if ENV["TRAVIS"]
gem 'coveralls', :require => false, :platform => :mri_20
end

group :development do
gem 'guard-rspec', :require => false
Expand Down
10 changes: 6 additions & 4 deletions spec/spec_helper.rb
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
require "bundler/setup"
require "pg_search"

begin
require 'coveralls'
Coveralls.wear!
rescue LoadError
if ENV["TRAVIS"]
begin
require 'coveralls'
Coveralls.wear!
rescue LoadError
end
end

begin
Expand Down

0 comments on commit 59c5cb2

Please sign in to comment.