File tree Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change 7
7
env :
8
8
- MONGODB_VERSION=2.6.11
9
9
- MONGODB_VERSION=3.0.8
10
+ - COVERAGE=1
10
11
cache :
11
12
directories :
12
13
- $HOME/.mongodb/versions/downloads
Original file line number Diff line number Diff line change 56
56
"dev" : " npm run build && bin/dev" ,
57
57
"build" : " ./node_modules/.bin/babel src/ -d lib/" ,
58
58
"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" ,
60
60
"posttest" : " mongodb-runner stop" ,
61
61
"start" : " ./bin/parse-server" ,
62
62
"prepublish" : " npm run build"
You can’t perform that action at this time.
0 commit comments