Skip to content

Commit

Permalink
Report coverage to coveralls
Browse files Browse the repository at this point in the history
  • Loading branch information
ericmackrodt committed Mar 28, 2017
1 parent 5cf9402 commit ff7575c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 4 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,7 @@ script:

branches:
only:
- master
- master

after_success:
- npm run report-coverage
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
"lint": "cross-env tslint 'src/**/*.ts'",
"travis": "npm run lint && npm run test:coverage",
"test": "cross-env mocha",
"test:coverage": "cross-env nyc mocha"
"test:coverage": "cross-env nyc mocha",
"report-coverage": "cat ./coverage/lcov.info | coveralls"
},
"repository": {
"type": "git",
Expand All @@ -27,6 +28,7 @@
"@types/mocha": "^2.2.40",
"@types/node": "^7.0.10",
"chai": "^3.5.0",
"coveralls": "^2.12.0",
"cross-env": "^3.2.4",
"dts-bundle": "^0.7.2",
"mocha": "^3.2.0",
Expand Down

0 comments on commit ff7575c

Please sign in to comment.