Merge pull request #831 from ParsePlatform/flovilmart.fixWindowsTests
Better support for windows builds
This commit is contained in:
@@ -6,7 +6,7 @@ node_js:
|
|||||||
- "4.3"
|
- "4.3"
|
||||||
env:
|
env:
|
||||||
global:
|
global:
|
||||||
- CODE_COVERAGE=1
|
- COVERAGE_OPTION='./node_modules/babel-istanbul/lib/cli.js cover -x **/spec/**'
|
||||||
matrix:
|
matrix:
|
||||||
- MONGODB_VERSION=2.6.11
|
- MONGODB_VERSION=2.6.11
|
||||||
- MONGODB_VERSION=3.0.8
|
- MONGODB_VERSION=3.0.8
|
||||||
|
|||||||
@@ -1,2 +1 @@
|
|||||||
#!/usr/bin/env node
|
|
||||||
require("../lib/cli/parse-server");
|
require("../lib/cli/parse-server");
|
||||||
|
|||||||
@@ -56,9 +56,10 @@
|
|||||||
"dev": "npm run build && bin/dev",
|
"dev": "npm run build && bin/dev",
|
||||||
"build": "./node_modules/.bin/babel src/ -d lib/",
|
"build": "./node_modules/.bin/babel src/ -d lib/",
|
||||||
"pretest": "cross-env MONGODB_VERSION=${MONGODB_VERSION:=3.0.8} ./node_modules/.bin/mongodb-runner start",
|
"pretest": "cross-env MONGODB_VERSION=${MONGODB_VERSION:=3.0.8} ./node_modules/.bin/mongodb-runner start",
|
||||||
"test": "cross-env NODE_ENV=test TESTING=1 ./node_modules/.bin/babel-node $(if [ \"$CODE_COVERAGE\" = \"1\" ]; then echo './node_modules/babel-istanbul/lib/cli.js cover -x **/spec/**'; fi;) ./node_modules/jasmine/bin/jasmine.js",
|
"test": "cross-env NODE_ENV=test TESTING=1 ./node_modules/.bin/babel-node $COVERAGE_OPTION ./node_modules/jasmine/bin/jasmine.js",
|
||||||
"posttest": "mongodb-runner stop",
|
"posttest": "mongodb-runner stop",
|
||||||
"start": "./bin/parse-server",
|
"coverage": "cross-env COVERAGE_OPTION='./node_modules/babel-istanbul/lib/cli.js cover -x **/spec/**' npm test",
|
||||||
|
"start": "node ./bin/parse-server",
|
||||||
"prepublish": "npm run build"
|
"prepublish": "npm run build"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
|
|||||||
Reference in New Issue
Block a user