Skip to content

Commit

Permalink
WIP: add ci setting for codeclimate coverage test
Browse files Browse the repository at this point in the history
  • Loading branch information
kennethanCeyer committed Apr 1, 2018
1 parent 8642faf commit 279b692
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .travis.yml
Expand Up @@ -15,4 +15,5 @@ script:
- npm test
after_success:
- npm run coverage
- npm run clean
- npm run clean
- CODECLIMATE_REPO_TOKEN=191371dd88a596d5362fd89c93fd5de9ab71205a6c7291e3fbdffed2ce7621ef codeclimate-test-reporter < ./coverage/lcov.info
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -6,7 +6,7 @@
"scripts": {
"build": "grunt",
"clean": "rimraf ./coverage ./.nyc_output",
"test": "npm run clean && nyc --reporter=html --reporter=text ./node_modules/mocha/bin/mocha **/*.spec.js -t 1000",
"test": "npm run clean && nyc --reporter=html --reporter=json ./node_modules/mocha/bin/mocha **/*.spec.js -t 1000",
"coverage": "nyc report --reporter=text-lcov > ./coverage/coverage.lcov && cat ./coverage/coverage.lcov | coveralls && codecov -t e0e9165c-fa05-48bd-8b42-9e221c01f84d"
},
"repository": {
Expand Down

0 comments on commit 279b692

Please sign in to comment.