Skip to content

Commit

Permalink
Fixed CodeClimate coverage reporting
Browse files Browse the repository at this point in the history
  • Loading branch information
kpumuk committed Dec 2, 2016
1 parent 367ded4 commit 6ca4d51
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
3 changes: 3 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,6 @@ notifications:
addons:
code_climate:
repo_token: "8792cbc0d1780830ddd3dd7eb1c25f09f386ba8f04449ad830039469406a6ab3"

after_success:
- bundle exec codeclimate-test-reporter
3 changes: 2 additions & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,6 @@ if ENV['RAILS_VERSION']
end

group :test do
gem 'codeclimate-test-reporter', require: false
gem 'simplecov'
gem 'codeclimate-test-reporter', '~> 1.0.0'
end
6 changes: 3 additions & 3 deletions spec/spec_helper.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
if ENV['CODECLIMATE_REPO_TOKEN'] && RUBY_VERSION > '1.8.7'
require "codeclimate-test-reporter"
CodeClimate::TestReporter.start
if ENV['CODECLIMATE_REPO_TOKEN']
require 'simplecov'
SimpleCov.start
end

require 'meta_tags'
Expand Down

0 comments on commit 6ca4d51

Please sign in to comment.