Skip to content

Commit 3e6c53c

Browse files
committed
Merge pull request #831 from ParsePlatform/flovilmart.fixWindowsTests
Better support for windows builds
2 parents ab11ef1 + ee38ebc commit 3e6c53c

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ node_js:
66
- "4.3"
77
env:
88
global:
9-
- CODE_COVERAGE=1
9+
- COVERAGE_OPTION='./node_modules/babel-istanbul/lib/cli.js cover -x **/spec/**'
1010
matrix:
1111
- MONGODB_VERSION=2.6.11
1212
- MONGODB_VERSION=3.0.8

bin/parse-server

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
1-
#!/usr/bin/env node
21
require("../lib/cli/parse-server");

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,10 @@
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 $(if [ \"$CODE_COVERAGE\" = \"1\" ]; then echo './node_modules/babel-istanbul/lib/cli.js cover -x **/spec/**'; fi;) ./node_modules/jasmine/bin/jasmine.js",
59+
"test": "cross-env NODE_ENV=test TESTING=1 ./node_modules/.bin/babel-node $COVERAGE_OPTION ./node_modules/jasmine/bin/jasmine.js",
6060
"posttest": "mongodb-runner stop",
61-
"start": "./bin/parse-server",
61+
"coverage": "cross-env COVERAGE_OPTION='./node_modules/babel-istanbul/lib/cli.js cover -x **/spec/**' npm test",
62+
"start": "node ./bin/parse-server",
6263
"prepublish": "npm run build"
6364
},
6465
"engines": {

0 commit comments

Comments
 (0)