Skip to content

Commit f32b3f3

Browse files
committed
Adds optional COVERAGE
1 parent c6406b9 commit f32b3f3

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

.travis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ node_js:
77
env:
88
- MONGODB_VERSION=2.6.11
99
- MONGODB_VERSION=3.0.8
10+
- COVERAGE=1
1011
cache:
1112
directories:
1213
- $HOME/.mongodb/versions/downloads

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656
"dev": "npm run build && bin/dev",
5757
"build": "./node_modules/.bin/babel src/ -d lib/",
5858
"pretest": "cross-env MONGODB_VERSION=${MONGODB_VERSION:=3.0.8} ./node_modules/.bin/mongodb-runner start",
59-
"test": "cross-env NODE_ENV=test TESTING=1 ./node_modules/.bin/babel-node ./node_modules/babel-istanbul/lib/cli.js cover -x **/spec/** ./node_modules/jasmine/bin/jasmine.js",
59+
"test": "cross-env NODE_ENV=test TESTING=1 ./node_modules/.bin/babel-node $([[ $COVERAGE == 1 ]] && echo './node_modules/babel-istanbul/lib/cli.js cover -x **/spec/**') ./node_modules/jasmine/bin/jasmine.js",
6060
"posttest": "mongodb-runner stop",
6161
"start": "./bin/parse-server",
6262
"prepublish": "npm run build"

0 commit comments

Comments
 (0)