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

grosser/codeclimate_batch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Deprecated, use builtin

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
michael@grosser.it
License: MIT
Build Status

About

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

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages