Skip to content

Commit 17b0c6c

Browse files
author
peter scholz
authored
Merge pull request #255 from ruby-grape/coveralls
adds code coverage w/ Coveralls
2 parents 1092399 + d57bcad commit 17b0c6c

File tree

7 files changed

+23
-7
lines changed

7 files changed

+23
-7
lines changed

.coveralls.yml

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
service_name: travis-ci

.gitignore

+2-1
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

+5-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,11 @@ sudo: false
22

33
language: ruby
44

5-
cache: bundler
6-
bundler_args: --without test
5+
before_install:
6+
- gem install bundler
7+
8+
after_success:
9+
- coveralls
710

811
matrix:
912
include:

CHANGELOG.md

+2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
#### Features
44

5+
* [#255](https://github.com/ruby-grape/grape-entity/pull/255): Adds code coverage w/ coveralls - [@LeFnord](https://github.com/LeFnord).
6+
57
* Your contribution here.
68

79
#### Fixes

Gemfile

+3-4
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,13 @@ 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
13+
gem 'simplecov', require: false
1514
end

README.md

+1
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

+9
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
require 'simplecov'
2+
require 'coveralls'
3+
4+
SimpleCov.start do
5+
add_filter 'spec/'
6+
end
7+
8+
Coveralls.wear!
9+
110
$LOAD_PATH.unshift(File.dirname(__FILE__))
211
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
312
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), 'support'))

0 commit comments

Comments
 (0)