Skip to content

Commit 27cee44

Browse files
committed
Add coveralls integration
1 parent 898bd8a commit 27cee44

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ language: node_js
22
node_js:
33
- "0.10"
44
install: npm install
5-
script: npm run jshint && npm test
5+
script: npm run jshint && npm run test-coveralls

package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
"main": "index.js",
66
"scripts": {
77
"test": "node test/test.js",
8+
"test-coveralls": "istanbul cover test/test.js && cat ./coverage/lcov.info | coveralls && rm -rf ./coverage",
89
"jshint": "jshint test/* lib/*"
910
},
1011
"repository": {
@@ -20,6 +21,8 @@
2021
"license": "MIT",
2122
"devDependencies": {
2223
"jshint": "^2.5.3",
23-
"tape": "^2.14.0"
24+
"tape": "^2.14.0",
25+
"istanbul": "~0.3.0",
26+
"coveralls": "~2.11.1"
2427
}
2528
}

0 commit comments

Comments
 (0)