Skip to content

Commit

Permalink
Report test coverage to Code Climate
Browse files Browse the repository at this point in the history
  • Loading branch information
dwbutler committed Jul 20, 2016
1 parent c2ef199 commit 76b7324
Show file tree
Hide file tree
Showing 8 changed files with 12 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,6 @@ matrix:
- rvm: rbx-3.9
sudo: false
cache: bundler

addons:
code_climate:
repo_token: 4d712355fa2863c0f33f413eeede4e52cc221c4bc989a692d97574b1f6010b69
1 change: 1 addition & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ source 'https://rubygems.org'
gemspec

gem 'codecov', require: false, group: :test
gem "codeclimate-test-reporter", group: :test, require: nil
1 change: 1 addition & 0 deletions gemfiles/rails_3.2.gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
source "https://rubygems.org"

gem "codecov", :require => false, :group => :test
gem "codeclimate-test-reporter", :group => :test, :require => nil
gem "rails", "~> 3.2.18"

gemspec :path => "../"
1 change: 1 addition & 0 deletions gemfiles/rails_4.0.gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
source "https://rubygems.org"

gem "codecov", :require => false, :group => :test
gem "codeclimate-test-reporter", :group => :test, :require => nil
gem "rails", "~> 4.0.0"

gemspec :path => "../"
1 change: 1 addition & 0 deletions gemfiles/rails_4.1.gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
source "https://rubygems.org"

gem "codecov", :require => false, :group => :test
gem "codeclimate-test-reporter", :group => :test, :require => nil
gem "rails", "~> 4.1.1"

gemspec :path => "../"
1 change: 1 addition & 0 deletions gemfiles/rails_4.2.gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
source "https://rubygems.org"

gem "codecov", :require => false, :group => :test
gem "codeclimate-test-reporter", :group => :test, :require => nil
gem "rails", "~> 4.2.0"

gemspec :path => "../"
1 change: 1 addition & 0 deletions gemfiles/rails_5.0.gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
source "https://rubygems.org"

gem "codecov", :require => false, :group => :test
gem "codeclimate-test-reporter", :group => :test, :require => nil
gem "rails", "~> 5.0.0"

gemspec :path => "../"
3 changes: 3 additions & 0 deletions spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@
SimpleCov.formatter = SimpleCov::Formatter::Codecov
end

require "codeclimate-test-reporter"
CodeClimate::TestReporter.start

RSpec.configure do |config|
config.order = "random"

Expand Down

0 comments on commit 76b7324

Please sign in to comment.