Skip to content
Browse files

Adding coveralls into project

  • Loading branch information...
1 parent 8c4794f commit 46c21a6023c8de09e3c8598acdc5a89b6a930315 @durran durran committed May 19, 2013
Showing with 9 additions and 1 deletion.
  1. +1 −0 .coveralls.yml
  2. +3 −1 Gemfile
  3. +5 −0 spec/spec_helper.rb
View
1 .coveralls.yml
@@ -0,0 +1 @@
+service_name: travis-ci
View
4 Gemfile
@@ -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"
View
5 spec/spec_helper.rb
@@ -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"

0 comments on commit 46c21a6

Please sign in to comment.
Something went wrong with that request. Please try again.