Skip to content

Commit d9c68af

Browse files
committed
Update build to only run tests once
1 parent 1faa02f commit d9c68af

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

.travis.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
language: node_js
22
node_js:
33
- node
4-
after_success: 'yarn test:coveralls'
4+
script: 'yarn test:coverage'
5+
after_success: 'yarn test:report'

package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@
88
"README.md"
99
],
1010
"scripts": {
11-
"build": "babel src -d dist --ignore *.spec.js",
11+
"build": "babel src -d dist --ignore *.test.js",
1212
"prepublish": "yarn build",
1313
"test": "jest src/**/*.test.js",
14-
"test:coverage": "jest src/**/*.test.js --coverage",
15-
"test:coveralls": "yarn test:coverage && cat ./coverage/lcov.info | ./node_modules/.bin/coveralls",
14+
"test:coverage": "yarn test -- --coverage",
15+
"test:report": "cat ./coverage/lcov.info | ./node_modules/.bin/coveralls",
1616
"test:watch": "yarn test -- --watch"
1717
},
1818
"author": "Matt Phillips",

0 commit comments

Comments
 (0)