Skip to content
This repository has been archived by the owner on Jan 15, 2024. It is now read-only.

Commit

Permalink
Adding coveralls
Browse files Browse the repository at this point in the history
  • Loading branch information
durran committed May 20, 2013
1 parent 900f801 commit 00ec27e
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
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 @@ -2,7 +2,9 @@ source "https://rubygems.org"

group :test do
gem "rspec", "~> 2.13"
unless ENV["CI"]
if ENV["CI"]
gem "coveralls", :require => false
else
gem "guard-rspec"
gem "rb-fsevent"
end
Expand Down
13 changes: 5 additions & 8 deletions spec/spec_helper.rb
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
if ENV["COVERAGE"]
require 'simplecov'

if ENV["CI"]
require "simplecov"
require "coveralls"
SimpleCov.formatter = Coveralls::SimpleCov::Formatter
SimpleCov.start do
add_filter 'spec'

add_group "BSON", 'lib/moped/bson'
add_group "Protocol", 'lib/moped/protocol'
add_group "Driver", 'lib/moped(?!/bson|/protocol)'
add_filter "spec"
end
end

Expand Down

0 comments on commit 00ec27e

Please sign in to comment.