Skip to content

Commit

Permalink
Adding coveralls into project
Browse files Browse the repository at this point in the history
  • Loading branch information
durran committed May 19, 2013
1 parent 8c4794f commit 46c21a6
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
1 change: 1 addition & 0 deletions .coveralls.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
service_name: travis-ci
4 changes: 3 additions & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@ gem "rake"
group :test do
gem "rspec", "~> 2.13"

unless ENV["CI"]
if ENV["CI"]
gem "coveralls", require: false
else
gem "guard"
gem "guard-rspec"
gem "rb-fsevent"
Expand Down
5 changes: 5 additions & 0 deletions spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@
MODELS = File.join(File.dirname(__FILE__), "app/models")
$LOAD_PATH.unshift(MODELS)

if ENV["CI"]
require "coveralls"
Coveralls.wear!
end

require "mongoid"
require "rspec"

Expand Down

0 comments on commit 46c21a6

Please sign in to comment.