Giter Club home page Giter Club logo

codeclimate_batch's Introduction

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
[email protected]
License: MIT
Build Status

codeclimate_batch's People

Contributors

grosser avatar k3rni avatar mhutter avatar sethherr avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

codeclimate_batch's Issues

Provide more examples

I'm trying to add this gem to my project, but I'm having some issues. I think some more documentation would help. Specifically, which files to include this in for each build system (rspec, minitest, cucumber, etc), and what to put in .travis.yml

I've included this at the top of spec/spec_helper.rb, and features/support/env.rb:

if ENV['CI']
  require 'codeclimate_batch'
  CodeclimateBatch.start
end

And I added this to my .travis.yml:

after_script:
  - code-climate-batch --groups 2

(and I still have this in there too:)

addons:
  code_climate:
    repo_token: <token>

When I run a travis build, I'm getting:

$ code-climate-batch --groups 2
/home/travis/build.sh: line 45: code-climate-batch: command not found

It seems like something is wrong with my path, but I'm not sure what to do to fix it. Should I add gem install -g codeclimate_batch as a before_install?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.