Skip to content

Commit

Permalink
Add coveralls
Browse files Browse the repository at this point in the history
  • Loading branch information
YJ Yang committed Jan 9, 2016
1 parent 9f4b9e0 commit 80b6b37
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
language: node_js
node_js:
- "stable"

after_success:
- npm run coveralls
6 changes: 5 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
"description": "Enforce a newline after an end of sentence in Markdown.",
"main": "index.js",
"scripts": {
"test": "./node_modules/mocha/bin/mocha"
"coveralls": "npm test && cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js",
"test": "./node_modules/istanbul/lib/cli.js cover ./node_modules/mocha/bin/_mocha -- -R spec"
},
"repository": {
"type": "git",
Expand All @@ -30,7 +31,10 @@
"unist-util-visit": "^1.0.0"
},
"devDependencies": {
"coveralls": "^2.11.6",
"istanbul": "^0.4.1",
"mocha": "^2.3.4",
"mocha-lcov-reporter": "^1.0.0",
"remark": "^3.1.0",
"remark-lint": "^2.0.0"
}
Expand Down

0 comments on commit 80b6b37

Please sign in to comment.