recink-codeclimate

1.5.8 • Public • Published

REciNK Component for CodeClimate

This is a REciNK component that submit coverage information into CodeClimate backend.

Prerequisites

  • [x] Git >= v1.x
  • [x] Node.js >= v6.x
  • [x] NPM >= v3.x
  • [x] REciNK

Use nvm to install and manage different versions of Node.js; Ideally, use v8+ for faster performance

Installation

  • npm install -g recink-codeclimate

Note that the component is installed automatically when running recink component add codeclimate

Configuration

.recink.yml configuration:

$:
  preprocess:
    '$.codeclimate.token': 'eval'
  codeclimate:
    token: 'process.env.CODECLIMATE_REPO_TOKEN'         # CodeClimate Repo token
    # skip-certificate: true                            # Skip validating server SSL certificate

.travis.yml configuration:

script: 'recink run unit -c codeclimate'  
before_install:
  # other before_install scripts...
  - 'npm install -g recink-codeclimate'

Or using the registry:

before_install:
  # other before_install scripts...
  - 'recink component add codeclimate'

Add the CodeClimate Repo Token to .travis.yml:

recink travis encrypt -x 'CODECLIMATE_REPO_TOKEN=1234'

If you are using Travis Pro read this guide to properly encrypt the environment variable

Usage

CODECLIMATE_REPO_TOKEN=1234 recink run unit -c recink-codeclimate

Package Sidebar

Install

npm i recink-codeclimate

Weekly Downloads

2

Version

1.5.8

License

MPL-2.0

Unpacked Size

8.66 kB

Total Files

6

Last publish

Collaborators

  • mitocgroup