Skip to content

Commit a66165d

Browse files
committed
added coveralls support
1 parent 21b0ea3 commit a66165d

File tree

4 files changed

+19
-4
lines changed

4 files changed

+19
-4
lines changed

.gitignore

+2-1
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
node_modules
1+
node_modules
2+
coverage

.npmignore

+1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
node_modules
2+
coverage
23
test

.travis.yml

+10-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,12 @@
1+
sudo: false
12
language: node_js
23
node_js:
3-
- 0.10
4-
- 0.12
4+
- "0.10"
5+
- "0.12"
6+
- "iojs"
7+
script: npm run travis
8+
9+
before_install:
10+
- '[ "${TRAVIS_NODE_VERSION}" != "0.10" ] || npm install -g npm'
11+
12+
after_success: cat ./coverage/lcov.info | node_modules/.bin/coveralls --verbose && rm -rf ./coverage

package.json

+6-1
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,16 @@
1010
"source-list-map": "^0.1.4"
1111
},
1212
"devDependencies": {
13+
"coveralls": "^2.11.2",
14+
"istanbul": "^0.3.13",
1315
"mocha": "^2.2.4",
1416
"should": "^5.2.0"
1517
},
1618
"scripts": {
17-
"test": "mocha --reporter spec"
19+
"test": "mocha",
20+
"travis": "npm run cover -- --report lcovonly",
21+
"cover": "istanbul cover -x *.runtime.js node_modules/mocha/bin/_mocha",
22+
"publish-patch": "mocha && npm version patch && git push && git push --tags && npm publish"
1823
},
1924
"repository": {
2025
"type": "git",

0 commit comments

Comments
 (0)