Skip to content

Commit

Permalink
Add coveralls with parallel build processing
Browse files Browse the repository at this point in the history
  • Loading branch information
RobinDaugherty committed Aug 26, 2017
1 parent f7d12b4 commit d5fe496
Show file tree
Hide file tree
Showing 17 changed files with 41 additions and 0 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
7 changes: 7 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
sudo: false
language: ruby
cache: bundler
env:
# With this env variable, coverage information sent to coveralls will not be processed until the webhook is sent.
COVERALLS_PARALLEL: true
notifications:
webhooks:
# Inform coveralls that all builds are complete. https://coveralls.zendesk.com/hc/en-us/articles/203484329-Parallel-Build-Webhook
- secure: "YnHYbTq51ySistjvOxsuNhyg4GLuUffEJstTYeGYXiBF7HG5h43IVYo8KNuLzwkgsOYBcNo+YMdQX7qCqJffSbhsr1FZRSzBmjFFxcyD4hu+ukM2theZ4mePVAZiePscYvQPRNY4hIb4d3egStJEytkalDhB3sOebF57tIaCssg="
rvm:
- 2.0.0
- 2.1.10
Expand Down
2 changes: 2 additions & 0 deletions gemfiles/pry010.gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,6 @@ gem 'rack', RUBY_VERSION < '2.2.2' ? '~> 1.6' : '~> 2.0'
gem "binding_of_caller"
gem "pry", "~> 0.10.0"

gem 'coveralls', require: false

gemspec path: "../"
2 changes: 2 additions & 0 deletions gemfiles/pry011.gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,6 @@ source "https://rubygems.org"
gem 'rack', RUBY_VERSION < '2.2.2' ? '~> 1.6' : '~> 2.0'
gem "pry", "~> 0.11.0pre"

gem 'coveralls', require: false

gemspec path: "../"
2 changes: 2 additions & 0 deletions gemfiles/pry09.gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,6 @@ source "https://rubygems.org"
gem 'rack', RUBY_VERSION < '2.2.2' ? '~> 1.6' : '~> 2.0'
gem "pry", "~> 0.9.12"

gem 'coveralls', require: false

gemspec path: "../"
2 changes: 2 additions & 0 deletions gemfiles/rack.gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,6 @@ source "https://rubygems.org"

gem 'rack', RUBY_VERSION < '2.2.2' ? '~> 1.6' : '~> 2.0'

gem 'coveralls', require: false

gemspec path: "../"
2 changes: 2 additions & 0 deletions gemfiles/rack_boc.gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,6 @@ source "https://rubygems.org"
gem 'rack', RUBY_VERSION < '2.2.2' ? '~> 1.6' : '~> 2.0'
gem "binding_of_caller"

gem 'coveralls', require: false

gemspec path: "../"
2 changes: 2 additions & 0 deletions gemfiles/rails42.gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,6 @@ source "https://rubygems.org"
gem "rails", "~> 4.2.0"
gem 'nokogiri', RUBY_VERSION < '2.1' ? '~> 1.6.0' : '>= 1.7'

gem 'coveralls', require: false

gemspec path: "../"
2 changes: 2 additions & 0 deletions gemfiles/rails42_boc.gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,6 @@ gem "rails", "~> 4.2.0"
gem 'nokogiri', RUBY_VERSION < '2.1' ? '~> 1.6.0' : '>= 1.7'
gem "binding_of_caller"

gem 'coveralls', require: false

gemspec path: "../"
2 changes: 2 additions & 0 deletions gemfiles/rails42_haml.gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,6 @@ gem "rails", "~> 4.2.0"
gem 'nokogiri', RUBY_VERSION < '2.1' ? '~> 1.6.0' : '>= 1.7'
gem "haml"

gem 'coveralls', require: false

gemspec path: "../"
2 changes: 2 additions & 0 deletions gemfiles/rails50.gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,6 @@ source "https://rubygems.org"

gem "rails", "~> 5.0.0"

gem 'coveralls', require: false

gemspec path: "../"
2 changes: 2 additions & 0 deletions gemfiles/rails50_boc.gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,6 @@ source "https://rubygems.org"
gem "rails", "~> 5.0.0"
gem "binding_of_caller"

gem 'coveralls', require: false

gemspec path: "../"
2 changes: 2 additions & 0 deletions gemfiles/rails50_haml.gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,6 @@ source "https://rubygems.org"
gem "rails", "~> 5.0.0"
gem "haml"

gem 'coveralls', require: false

gemspec path: "../"
2 changes: 2 additions & 0 deletions gemfiles/rails51.gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,6 @@ source "https://rubygems.org"

gem "rails", "~> 5.1.0"

gem 'coveralls', require: false

gemspec path: "../"
2 changes: 2 additions & 0 deletions gemfiles/rails51_boc.gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,6 @@ source "https://rubygems.org"
gem "rails", "~> 5.1.0"
gem "binding_of_caller"

gem 'coveralls', require: false

gemspec path: "../"
2 changes: 2 additions & 0 deletions gemfiles/rails51_haml.gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,6 @@ source "https://rubygems.org"
gem "rails", "~> 5.1.0"
gem "haml"

gem 'coveralls', require: false

gemspec path: "../"
5 changes: 5 additions & 0 deletions spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,10 @@

ENV["EDITOR"] = nil

require 'coveralls'
Coveralls.wear! do
add_filter 'spec/'
end

require 'bundler/setup'
Bundler.require(:default)

0 comments on commit d5fe496

Please sign in to comment.