Skip to content
This repository was archived by the owner on Aug 15, 2024. It is now read-only.

Commit cf697e2

Browse files
committed
added coverage reporting
1 parent b907853 commit cf697e2

File tree

2 files changed

+14
-3
lines changed

2 files changed

+14
-3
lines changed

.travis.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,14 @@
11
language: node_js
22
node_js:
33
- "0.10"
4-
- "0.11"
4+
- "0.12"
5+
- "iojs"
6+
script: npm run travis
7+
8+
before_install:
9+
- '[ "${TRAVIS_NODE_VERSION}" != "0.10" ] || npm install -g npm'
10+
11+
after_success:
12+
- cat ./coverage/lcov.info | node_modules/.bin/coveralls --verbose
13+
- cat ./coverage/coverage.json | node_modules/codecov.io/bin/codecov.io.js
14+
- rm -rf ./coverage

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,9 @@
77
"test": "test"
88
},
99
"scripts": {
10-
"test": "mocha -R spec",
11-
"cover": "istanbul cover node_modules/mocha/bin/_mocha -- -R spec"
10+
"test": "mocha",
11+
"cover": "istanbul cover node_modules/mocha/bin/_mocha",
12+
"travis": "npm run cover -- --report lcovonly"
1213
},
1314
"repository": {
1415
"type": "git",

0 commit comments

Comments
 (0)