Skip to content

Commit

Permalink
add coveralls; reports code coverage on after travis builds
Browse files Browse the repository at this point in the history
  • Loading branch information
krisleech committed Jan 24, 2014
1 parent 6ee217b commit 0198506
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 7 deletions.
3 changes: 2 additions & 1 deletion Gemfile
Expand Up @@ -4,7 +4,8 @@ gemspec

gem 'rubysl', '~> 2.0', :platforms => :rbx

gem 'coveralls', require: false

group :metrics do
gem 'simplecov'
gem 'flay'
end
1 change: 1 addition & 0 deletions README.md
Expand Up @@ -6,6 +6,7 @@ Ruby objects using Pub/Sub.
[![Gem Version](https://badge.fury.io/rb/wisper.png)](http://badge.fury.io/rb/wisper)
[![Code Climate](https://codeclimate.com/github/krisleech/wisper.png)](https://codeclimate.com/github/krisleech/wisper)
[![Build Status](https://travis-ci.org/krisleech/wisper.png?branch=master)](https://travis-ci.org/krisleech/wisper)
[![Coverage Status](https://coveralls.io/repos/krisleech/wisper/badge.png?branch=master)](https://coveralls.io/r/krisleech/wisper?branch=master)

Wisper was extracted from a Rails codebase but is not dependant on Rails.

Expand Down
5 changes: 4 additions & 1 deletion Rakefile
@@ -1,7 +1,10 @@
require "bundler/gem_tasks"

require 'rspec/core/rake_task'
require 'coveralls/rake/task'

RSpec::Core::RakeTask.new
Coveralls::RakeTask.new

task :test_with_coveralls => [:spec, 'coveralls:push']

task :default => :spec
7 changes: 2 additions & 5 deletions spec/spec_helper.rb
@@ -1,8 +1,5 @@
begin
require 'simplecov'
SimpleCov.start
rescue LoadError
end
require 'coveralls'
Coveralls.wear!

require 'wisper'

Expand Down

0 comments on commit 0198506

Please sign in to comment.