Skip to content

Commit

Permalink
chore: configure coveralls in travis
Browse files Browse the repository at this point in the history
  • Loading branch information
qfox committed Feb 17, 2017
1 parent 9587654 commit 7f32c66
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,8 @@ matrix:
include:
- node_js: "4"
- node_js: "6"
env: COVERALLS=1
- node_js: "7"

after_success:
- if [ "x$COVERALLS" = "x1" ]; then npm run coveralls; fi
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
},
"devDependencies": {
"chai": "~1.7.2",
"coveralls": "^2.11.16",
"eslint": "^3.15.0",
"eslint-config-pedant": "^0.8.0",
"mocha": "~1.21.4",
Expand All @@ -36,6 +37,7 @@
"scripts": {
"clean": "rm -r .nyc_output coverage",
"coverage": "nyc --reporter=text --reporter=html mocha; echo; echo 'Open coverage/index.html file in your browser'",
"coveralls": "nyc report --reporter=text-lcov | coveralls",
"lint": "eslint .",
"pretest": "npm run lint",
"test": "nyc mocha"
Expand Down

0 comments on commit 7f32c66

Please sign in to comment.