Skip to content

Commit 263c1b3

Browse files
committed
config coverall
1 parent a144cd8 commit 263c1b3

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

.travis.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
language: node_js
22
node_js:
3-
- "8.11.4"
3+
- iojs
4+
- node
45
before_install:
56
- npm i -g npm@5.6.0
67
script:
7-
- npm run coverage
8+
- npm test
89
after_script:
910
- npm run coveralls

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
"description": "Randomly select elements in a collection.",
55
"main": "src/index.js",
66
"scripts": {
7-
"test": "mocha --timeout=5000",
8-
"coverage": "nyc mocha --timeout=5000",
7+
"test": "mocha --timeout=3000",
8+
"coverage": "nyc report --timeout=3000 --reporter=text-lcov | coveralls",
99
"start": "node src/demo.js"
1010
},
1111
"repository": {

0 commit comments

Comments
 (0)