Skip to content

Commit 130d108

Browse files
committed
config coveralls
1 parent 2c0a32e commit 130d108

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

.travis.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ node_js:
44
before_install:
55
- npm i -g npm@5.6.0
66
script:
7-
- npm run test-coverage
7+
- npm run test
8+
npm run-script test-report
9+
npm run-script test-coverage
810
after_script:
911
- npm run coverage

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
"main": "src/index.js",
66
"scripts": {
77
"test": "nyc --reporter=html mocha",
8+
"test-report": "nyc --reporter=text-lcov mocha",
89
"test-coverage": "nyc report --reporter=text-lcov mocha",
910
"coverage": "nyc report --reporter=text-lcov mocha | coveralls",
1011
"start": "node src/demo.js",

0 commit comments

Comments
 (0)