Skip to content

Commit

Permalink
Add code coverage integration with Coveralls
Browse files Browse the repository at this point in the history
Change-Id: I2ab5b379c035c5da72c3030da6857b7c21c47aaf
Reviewed-on: http://gerrit.causes.com/47710
Tested-by: jenkins <[email protected]>
Reviewed-by: Shane da Silva <[email protected]>
  • Loading branch information
sds committed Mar 12, 2015
1 parent 54ca513 commit bbf349a
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
Gemfile.lock
coverage/
pkg/
.bundle
3 changes: 3 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
source 'https://rubygems.org'

# Generate coverage information in Travis builds
gem 'coveralls'

# Pin Rubocop for Travis builds.
gem 'rubocop', '0.29.1'

Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
[![Gem Version](https://badge.fury.io/rb/overcommit.svg)](https://badge.fury.io/rb/overcommit)
[![Build Status](https://travis-ci.org/causes/overcommit.svg)](https://travis-ci.org/causes/overcommit)
[![Coverage Status](https://coveralls.io/repos/causes/overcommit/badge.svg)](https://coveralls.io/r/causes/overcommit)
[![Code Climate](https://codeclimate.com/github/causes/overcommit.png)](https://codeclimate.com/github/causes/overcommit)
[![Dependency Status](https://gemnasium.com/causes/overcommit.svg)](https://gemnasium.com/causes/overcommit)
[![Inline docs](http://inch-ci.org/github/causes/overcommit.svg?branch=master)](http://inch-ci.org/github/causes/overcommit)
Expand Down
3 changes: 3 additions & 0 deletions spec/spec_helper.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
require 'coveralls'
require 'overcommit'
require 'tempfile'

Coveralls.wear!

hook_types = Dir[File.join(Overcommit::OVERCOMMIT_HOME, 'lib/overcommit/hook/*')].
select { |f| File.directory?(f) }.
sort
Expand Down

0 comments on commit bbf349a

Please sign in to comment.