Report a batch of codeclimate results by merging and from multiple servers.
Uses cc-amend to do the merging since workers will not share a common disk.
gem install codeclimate_batch
# test_helper.rb
if ENV['CI']
require 'codeclimate_batch'
CodeclimateBatch.start
end
- Will run when
ENV['CODECLIMATE_REPO_TOKEN']
is set and running onmaster
branch - If your default branch is not
master
, setENV['DEFAULT_BRANCH']
- Will also run on Pull Requests on Travis
After tests have finished:
# send coverage reports to cc-amend, unifying once 4 reports arrive
codeclimate-batch --groups 4
# custom key (when not using travis), must be the same on all hosts
codeclimate-batch --groups 4 --key my-app/$BUILD_NUMBER
Michael Grosser
michael@grosser.it
License: MIT