Skip to content

Commit

Permalink
Add coveralls to the project for code coverage.
Browse files Browse the repository at this point in the history
  • Loading branch information
johnbellone committed Jul 6, 2014
1 parent c5e686a commit b21d6bb
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 3 deletions.
3 changes: 3 additions & 0 deletions .coveralls.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
service_name: travis-ci
repo_token: Q9b8riytmhZpTbCnY4Rph03A5BXMeS9aH
1 change: 1 addition & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ gem 'rspec'
gem 'rubocop'
gem 'foodcritic'
gem 'tailor'
gem 'coveralls', require: false

group :test, :integration do
gem 'chefspec'
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ consul-cookbook
===============
![Release](http://img.shields.io/github/release/johnbellone/consul-cookbook.svg)
[![Build Status](http://img.shields.io/travis/johnbellone/consul-cookbook.svg)][5]
[![Code Climate](http://img.shields.io/codeclimate/github/johnbellone/consul-cookbook.svg)][6]
[![Code Coverage](http://img.shields.io/coveralls/johnbellone/consul-cookbook.svg)][6]

Installs and configures [Consul][1].

Expand Down Expand Up @@ -209,4 +209,4 @@ Created and maintained by [John Bellone][3] [@johnbellone][2] (<jbellone@bloombe
[3]: https://github.com/johnbellone
[4]: https://github.com/johnbellone/consul-cookbook/graphs/contributors
[5]: http://travis-ci.org/johnbellone/consul-cookbook
[6]: https://codeclimate.com/github/johnbellone/lockrun-cookbook
[6]: https://coveralls.io/r/johnbellone/consul-cookbook
4 changes: 3 additions & 1 deletion spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@
require 'chefspec/berkshelf'
require 'chefspec/cacher'
require 'chefspec/server'
require File.expand_path('../support/matchers', __FILE__)
require 'coveralls'

Coveralls.wear!

RSpec.configure do |config|
config.color = true
Expand Down

0 comments on commit b21d6bb

Please sign in to comment.