Skip to content

Commit 09d2de8

Browse files
committed
adds code coverage w/ Coveralls
1 parent 1092399 commit 09d2de8

File tree

6 files changed

+12
-5
lines changed

6 files changed

+12
-5
lines changed

.coveralls.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
service_name: travis-ci

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,10 @@ pkg
3131
dist
3232
Gemfile.lock
3333
tmp
34+
coverage/
3435

3536
## Rubinius
3637
.rbx
3738

3839
## PROJECT::SPECIFIC
39-
.project
40+
.project

.travis.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ language: ruby
55
cache: bundler
66
bundler_args: --without test
77

8+
after_success:
9+
- coveralls
10+
811
matrix:
912
include:
1013
- rvm: 2.4.0

Gemfile

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,12 @@ source 'http://rubygems.org'
22

33
gemspec
44

5-
group :development, :test do
6-
gem 'ruby-grape-danger', '~> 0.1.1', require: false
7-
end
8-
95
group :test do
6+
gem 'coveralls', require: false
107
gem 'growl'
118
gem 'guard'
129
gem 'guard-bundler'
1310
gem 'guard-rspec'
1411
gem 'rb-fsevent'
12+
gem 'ruby-grape-danger', '~> 0.1.1', require: false
1513
end

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
[![Gem Version](http://img.shields.io/gem/v/grape-entity.svg)](http://badge.fury.io/rb/grape-entity)
44
[![Build Status](http://img.shields.io/travis/ruby-grape/grape-entity.svg)](https://travis-ci.org/ruby-grape/grape-entity)
5+
[![Coverage Status](https://coveralls.io/repos/github/ruby-grape/grape-entity/badge.svg?branch=master)](https://coveralls.io/github/ruby-grape/grape-entity?branch=master)
56
[![Dependency Status](https://gemnasium.com/ruby-grape/grape-entity.svg)](https://gemnasium.com/ruby-grape/grape-entity)
67
[![Code Climate](https://codeclimate.com/github/ruby-grape/grape-entity.svg)](https://codeclimate.com/github/ruby-grape/grape-entity)
78

spec/spec_helper.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
require 'coveralls'
2+
Coveralls.wear!
3+
14
$LOAD_PATH.unshift(File.dirname(__FILE__))
25
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
36
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), 'support'))

0 commit comments

Comments
 (0)