1.3.0 • Published 7 years ago

run-jst-codeclimate v1.3.0

Weekly downloads
4
License
MIT
Repository
github
Last release
7 years ago

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