REciNK Component for CodeClimate
npm install recink-codeclimateREciNK Component for CodeClimate
================================
This is a REciNK component that submit
coverage information into CodeClimate backend.
- [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
- npm install -g recink-codeclimate
> Note that the component is installed automatically when running recink component add codeclimate
.recink.yml configuration:
``yaml`
$:
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:
`yaml`
script: 'recink run unit -c codeclimate'
before_install:
# other before_install scripts...
- 'npm install -g recink-codeclimate'
Or using the registry:
`yaml`
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
```
CODECLIMATE_REPO_TOKEN=1234 recink run unit -c recink-codeclimate