Skip to content

Instantly share code, notes, and snippets.

@grabbou
Created August 19, 2014 08:27
Show Gist options
  • Star 4 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save grabbou/b67481ac2f7dda48b354 to your computer and use it in GitHub Desktop.
Save grabbou/b67481ac2f7dda48b354 to your computer and use it in GitHub Desktop.
Code coverage integration for CodeClimate / TravisCI & Mocha
language: node_js
node_js: ["0.11", "0.10"]
env:
CODECLIMATE_REPO_TOKEN: <your_token>
before_script:
- npm install -g istanbul
- npm install -g mocha
- npm install -g codeclimate-test-reporter
after_success:
- istanbul cover _mocha -- -R spec ./test/*.js
- codeclimate < ./coverage/lcov.info
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment