Skip to content

Commit e8209ab

Browse files
author
James Wright
committed
Coveralls travis integration
1 parent cb95469 commit e8209ab

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

.travis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ node_js:
66
- 7
77

88
install: "npm i"
9+
script: "npm run test-and-report-coverage"
910

1011
deploy:
1112
provider: npm

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@
99
"main": "lib/index.js",
1010
"scripts": {
1111
"eslint": "eslint {lib,tests,valimate.js}",
12-
"test": "npm run eslint && mocha && npm run test-e2e",
13-
"test-e2e": "./valimate.js",
14-
"test-with-coverage": "npm run eslint && npm run test-e2e && istanbul cover _mocha --report lcovonly"
12+
"test": "npm run eslint && npm run test-e2e && istanbul cover _mocha --report lcovonly",
13+
"test-and-report-coverage": "npm test && cat coverage/lcov.info | coveralls",
14+
"test-e2e": "./valimate.js"
1515
},
1616
"keywords": [
1717
"html",

0 commit comments

Comments
 (0)