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 644a4c1
Show file tree
Hide file tree
Showing 12 changed files with 37 additions and 20 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
4 changes: 4 additions & 0 deletions Appraisals
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,7 @@ end
appraise 'rails-edge' do
gem 'arel', github: 'rails/arel'
end

appraise 'rack-edge' do
gem 'rack', github: 'rack/rack'
end
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
3 changes: 2 additions & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ group :test do
gem 'rspec', '~> 3.0'
gem 'cookiejar'
gem 'rack-jsonp', require: 'rack/jsonp'
gem 'mime-types', '~> 3.0'
gem 'mime-types'
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'
gem 'ruby-grape-danger', '~> 0.1.0', require: false
gem 'coveralls', '~> 0.8.17', require: false
end

gemspec path: '../'
5 changes: 3 additions & 2 deletions gemfiles/rack_edge.gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ gem 'rack', github: 'rack/rack'
group :development, :test do
gem 'bundler'
gem 'rake'
gem 'rubocop', '~> 0.45.0'
gem 'rubocop', '~> 0.45'
end

group :development do
Expand All @@ -27,8 +27,9 @@ group :test do
gem 'rspec', '~> 3.0'
gem 'cookiejar'
gem 'rack-jsonp', require: 'rack/jsonp'
gem 'mime-types', '~> 3.0'
gem 'mime-types'
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'
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'
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'
gem 'ruby-grape-danger', '~> 0.1.0', require: false
gem 'coveralls', '~> 0.8.17', require: false
end

gemspec path: '../'
3 changes: 2 additions & 1 deletion gemfiles/rails_edge.gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,9 @@ group :test do
gem 'rspec', '~> 3.0'
gem 'cookiejar'
gem 'rack-jsonp', require: 'rack/jsonp'
gem 'mime-types', '~> 3.0'
gem 'mime-types'
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 644a4c1

Please sign in to comment.