CodeClimate run-jst component
npm install run-jst-codeclimateCodeClimate Component
======================
This is a run-jst component that submit
coverage information into CodeClimate backend.
- [ ] Ensure Node.js >=v6.x is installed (We recommend using nvm https://github.com/creationix/nvm#installation)
- [ ] Install "run-jst"
- [ ] Profit?!
- npm install -g run-jst-codeclimate
.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
```
JST_CODECLIMATE_REPO_TOKEN=1234 jst run unit -c run-jst-codeclimate