Skip to content

Report a batch of codeclimate results by merging and from multiple servers

License

Notifications You must be signed in to change notification settings

shekibobo/codeclimate_batch

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

Install

gem install codeclimate_batch

Usage

# test_helper.rb
if ENV['CI']
  require 'codeclimate_batch'
  CodeclimateBatch.start
end
  • Will run when ENV['CODECLIMATE_REPO_TOKEN'] is set and running on master branch
  • If your default branch is not master, set ENV['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

Author

Michael Grosser
[email protected]
License: MIT
Build Status

About

Report a batch of codeclimate results by merging and from multiple servers

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Languages

  • Ruby 100.0%