run-jst-codeclimate

1.3.0 • Public • Published

CodeClimate Component

This is a run-jst component that submit coverage information into CodeClimate backend.

Prerequisites

Installation

  • npm install -g run-jst-codeclimate

Configuration

.jst.yml configuration:

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

.travis.yml configuration:

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

Add the CodeClimate Repo Token to .travis.yml:

jst travis encrypt -x 'JST_CODECLIMATE_REPO_TOKEN=1234'

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

Usage

JST_CODECLIMATE_REPO_TOKEN=1234 jst run unit -c run-jst-codeclimate

Package Sidebar

Install

npm i run-jst-codeclimate

Weekly Downloads

1

Version

1.3.0

License

MIT

Last publish

Collaborators

  • mitocgroup