File tree 2 files changed +6
-3
lines changed 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -5,8 +5,11 @@ language: node_js
5
5
node_js :
6
6
- " 4.3"
7
7
env :
8
- - MONGODB_VERSION=2.6.11
9
- - MONGODB_VERSION=3.0.8
8
+ global :
9
+ - CODE_COVERAGE=1
10
+ matrix :
11
+ - MONGODB_VERSION=2.6.11
12
+ - MONGODB_VERSION=3.0.8
10
13
cache :
11
14
directories :
12
15
- $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 $([[ $CODE_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