Skip to content

Commit 8e6a31b

Browse files
committed
Makes all scripts cross platforms (#4383)
1 parent 110c90e commit 8e6a31b

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.travis.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,8 @@ before_script:
4141
- psql -c 'CREATE EXTENSION postgis;' -U postgres -d parse_server_postgres_adapter_test_database
4242
- psql -c 'CREATE EXTENSION postgis_topology;' -U postgres -d parse_server_postgres_adapter_test_database
4343
- silent=1 mongodb-runner --start
44+
script:
45+
- npm run coverage
4446
after_script:
4547
- bash <(curl -s https://codecov.io/bash)
4648

package.json

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -70,10 +70,8 @@
7070
"lint": "flow && eslint --cache ./",
7171
"build": "babel src/ -d lib/ --copy-files",
7272
"pretest": "npm run lint",
73-
"test": "cross-env MONGODB_VERSION=${MONGODB_VERSION:=3.2.6} MONGODB_STORAGE_ENGINE=mmapv1 TESTING=1 $COVERAGE_OPTION jasmine",
74-
"test:win": "cross-env MONGODB_VERSION=${MONGODB_VERSION:=3.2.6} MONGODB_STORAGE_ENGINE=mmapv1 TESTING=1 jasmine",
75-
"coverage": "cross-env COVERAGE_OPTION='./node_modules/.bin/nyc' npm test",
76-
"coverage:win": "cross-env MONGODB_VERSION=${MONGODB_VERSION:=3.2.6} MONGODB_STORAGE_ENGINE=mmapv1 TESTING=1 node ./node_modules/.bin/nyc ./node_modules/jasmine/bin/jasmine.js",
73+
"test": "cross-env MONGODB_VERSION=${MONGODB_VERSION:=3.2.6} MONGODB_STORAGE_ENGINE=mmapv1 TESTING=1 jasmine",
74+
"coverage": "cross-env MONGODB_VERSION=${MONGODB_VERSION:=3.2.6} MONGODB_STORAGE_ENGINE=mmapv1 TESTING=1 nyc jasmine",
7775
"start": "node ./bin/parse-server",
7876
"prepublish": "npm run build"
7977
},

0 commit comments

Comments
 (0)