Skip to content

Commit

Permalink
feat(build): set up code coverage and report for codacy
Browse files Browse the repository at this point in the history
  • Loading branch information
Jon Lazarini committed Feb 24, 2017
1 parent 9af02b4 commit 1a9e316
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,6 @@ script:
- npm run check-coverage
- npm run build
after_success:
- npm run report-coverage
- npm run report-coverage:codecov
- npm run report-coverage:codacy
- npm run semantic-release
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
"scripts": {
"commit": "git-cz",
"check-coverage": "nyc check-coverage --statements 100 --branches 100 --functions 100 --lines 100",
"report-coverage": "cat ./coverage/lcov.info | codecov",
"report-coverage:codecov": "cat ./coverage/lcov.info | codecov",
"report-coverage:codacy": "cat ./coverage/lcov.info | ./node_modules/.bin/codacy-coverage",
"start": "npm run test",
"watch:test": "npm t -- --watch",
"test": "mocha src/index.test.js --compilers js:babel-register",
Expand Down

0 comments on commit 1a9e316

Please sign in to comment.