Skip to content

Commit

Permalink
Added code coverage w/ Coveralls.
Browse files Browse the repository at this point in the history
  • Loading branch information
dblock committed Jan 12, 2017
1 parent 4e92898 commit 171db1f
Show file tree
Hide file tree
Showing 10 changed files with 28 additions and 16 deletions.
1 change: 1 addition & 0 deletions .coveralls.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
service_name: travis-ci
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

#### Features

* [#1555](https://github.com/ruby-grape/grape/pull/1555): Added code coverage w/Coveralls - [@dblock](https://github.com/dblock).
* Your contribution here.

#### Fixes
Expand Down
1 change: 1 addition & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,5 @@ group :test do
gem 'rack-jsonp', require: 'rack/jsonp'
gem 'mime-types', '~> 3.0'
gem 'ruby-grape-danger', '~> 0.1.0', require: false
gem 'coveralls', '~> 0.8.17', require: false
end
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
[![Build Status](https://travis-ci.org/ruby-grape/grape.svg?branch=master)](https://travis-ci.org/ruby-grape/grape)
[![Dependency Status](https://gemnasium.com/ruby-grape/grape.svg)](https://gemnasium.com/ruby-grape/grape)
[![Code Climate](https://codeclimate.com/github/ruby-grape/grape.svg)](https://codeclimate.com/github/ruby-grape/grape)
[![Coverage Status](https://coveralls.io/repos/github/ruby-grape/grape/badge.svg?branch=master)](https://coveralls.io/github/ruby-grape/grape?branch=master)
[![Inline docs](http://inch-ci.org/github/ruby-grape/grape.svg)](http://inch-ci.org/github/ruby-grape/grape)
[![git.legal](https://git.legal/projects/1364/badge.svg "Number of libraries approved")](https://git.legal/projects/1364)
[![Join the chat at https://gitter.im/ruby-grape/grape](https://badges.gitter.im/ruby-grape/grape.svg)](https://gitter.im/ruby-grape/grape?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
Expand Down
9 changes: 5 additions & 4 deletions gemfiles/rack_1.5.2.gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ gem 'rack', '1.5.2'
group :development, :test do
gem 'bundler'
gem 'rake'
gem 'rubocop', '0.39.0'
gem 'rubocop', '~> 0.45'
end

group :development do
Expand All @@ -21,14 +21,15 @@ group :development do
end

group :test do
gem 'grape-entity', '0.5.0'
gem 'grape-entity', '~> 0.6'
gem 'maruku'
gem 'rack-test'
gem 'rspec', '~> 3.0'
gem 'cookiejar'
gem 'rack-jsonp', require: 'rack/jsonp'
gem 'mime-types', '< 3.0'
gem 'danger', '~> 2.0'
gem 'mime-types', '~> 3.0'
gem 'ruby-grape-danger', '~> 0.1.0', require: false
gem 'coveralls', '~> 0.8.17', require: false
end

gemspec path: '../'
9 changes: 5 additions & 4 deletions gemfiles/rails_3.gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ gem 'rack-cache', '<= 1.2'
group :development, :test do
gem 'bundler'
gem 'rake'
gem 'rubocop', '0.39.0'
gem 'rubocop', '~> 0.45'
end

group :development do
Expand All @@ -22,14 +22,15 @@ group :development do
end

group :test do
gem 'grape-entity', '0.5.0'
gem 'grape-entity', '~> 0.6'
gem 'maruku'
gem 'rack-test'
gem 'rspec', '~> 3.0'
gem 'cookiejar'
gem 'rack-jsonp', require: 'rack/jsonp'
gem 'mime-types', '< 3.0'
gem 'danger', '~> 2.0'
gem 'mime-types', '~> 3.0'
gem 'ruby-grape-danger', '~> 0.1.0', require: false
gem 'coveralls', '~> 0.8.17', require: false
end

gemspec path: '../'
9 changes: 5 additions & 4 deletions gemfiles/rails_4.gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ gem 'rails', '4.1.6'
group :development, :test do
gem 'bundler'
gem 'rake'
gem 'rubocop', '0.39.0'
gem 'rubocop', '~> 0.45'
end

group :development do
Expand All @@ -21,14 +21,15 @@ group :development do
end

group :test do
gem 'grape-entity', '0.5.0'
gem 'grape-entity', '~> 0.6'
gem 'maruku'
gem 'rack-test'
gem 'rspec', '~> 3.0'
gem 'cookiejar'
gem 'rack-jsonp', require: 'rack/jsonp'
gem 'mime-types', '< 3.0'
gem 'danger', '~> 2.0'
gem 'mime-types', '~> 3.0'
gem 'ruby-grape-danger', '~> 0.1.0', require: false
gem 'coveralls', '~> 0.8.17', require: false
end

gemspec path: '../'
9 changes: 5 additions & 4 deletions gemfiles/rails_5.gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ gem 'rails', '5.0.0'
group :development, :test do
gem 'bundler'
gem 'rake'
gem 'rubocop', '0.45.0'
gem 'rubocop', '~> 0.45'
end

group :development do
Expand All @@ -21,14 +21,15 @@ group :development do
end

group :test do
gem 'grape-entity', '0.5.0'
gem 'grape-entity', '~> 0.6'
gem 'maruku'
gem 'rack-test'
gem 'rspec', '~> 3.0'
gem 'cookiejar'
gem 'rack-jsonp', require: 'rack/jsonp'
gem 'mime-types', '< 3.0'
gem 'danger', '~> 2.0'
gem 'mime-types', '~> 3.0'
gem 'ruby-grape-danger', '~> 0.1.0', require: false
gem 'coveralls', '~> 0.8.17', require: false
end

gemspec path: '../'
1 change: 1 addition & 0 deletions gemfiles/rails_edge.gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ group :test do
gem 'rack-jsonp', require: 'rack/jsonp'
gem 'mime-types', '~> 3.0'
gem 'ruby-grape-danger', '~> 0.1.0', require: false
gem 'coveralls', '~> 0.8.17', require: false
end

gemspec path: '../'
3 changes: 3 additions & 0 deletions spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,6 @@

config.before(:each) { Grape::Util::InheritableSetting.reset_global! }
end

require 'coveralls'
Coveralls.wear!

0 comments on commit 171db1f

Please sign in to comment.