Skip to content

Commit 42ff90c

Browse files
committed
update to new way of codeclimate integration
1 parent d8a7717 commit 42ff90c

File tree

3 files changed

+9
-4
lines changed

3 files changed

+9
-4
lines changed

.travis.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@ before_install: |
3434
}
3535
fi
3636
)
37+
after_success:
38+
- if [ -n "$CODECLIMATE" ]; then bundle exec codeclimate-test-reporter; fi
3739
matrix:
3840
fast_finish: true
3941
include:

Gemfile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,8 @@ source 'https://rubygems.org'
33
gemspec
44

55
if ENV['CODECLIMATE']
6-
gem 'codeclimate-test-reporter', :group => :test, :require => nil
6+
group :test do
7+
gem 'simplecov'
8+
gem 'codeclimate-test-reporter'
9+
end
710
end

spec/spec_helper.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
if ENV['CODECLIMATE'] && ENV['CODECLIMATE_REPO_TOKEN']
2-
require 'codeclimate-test-reporter'
3-
CodeClimate::TestReporter.start
1+
if ENV['CODECLIMATE']
2+
require 'simplecov'
3+
SimpleCov.start
44
end
55

66
require 'image_optim/pack'

0 commit comments

Comments
 (0)