run-jst-codeclimate
v1.3.0
Published
CodeClimate run-jst component
Downloads
10
Maintainers
Readme
CodeClimate Component
This is a run-jst component that submit coverage information into CodeClimate backend.
Prerequisites
- [ ] Ensure
Node.js >=v6.x
is installed (We recommend usingnvm
https://github.com/creationix/nvm#installation) - [ ] Install "run-jst"
- [ ] Profit?!
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