Skip to content

Commit f727ea5

Browse files
committed
add coveralls reporting
1 parent a258a4c commit f727ea5

2 files changed

Lines changed: 11 additions & 3 deletions

File tree

.travis.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
11
language: node_js
22
node_js:
3-
- "stable"
3+
- "stable"
4+
5+
after_success:
6+
- npm run coveralls

package.json

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,16 @@
88
"license": "MIT",
99
"main": "index.js",
1010
"scripts": {
11-
"test": "./node_modules/.bin/mocha"
11+
"test": "mocha",
12+
"cover": "istanbul cover _mocha",
13+
"coveralls": "npm run cover -- --report lcovonly && cat ./coverage/lcov.info | coveralls"
1214
},
1315
"dependencies": {},
1416
"devDependencies": {
17+
"coveralls": "^2.11.16",
1518
"eslint": "^3.13.1",
16-
"mocha": "^3.2.0"
19+
"istanbul": "^0.4.5",
20+
"mocha": "^3.2.0",
21+
"mocha-lcov-reporter": "^1.2.0"
1722
}
1823
}

0 commit comments

Comments
 (0)