Skip to content

Commit e2d3367

Browse files
authored
Makes all scripts cross platforms (#4383)
1 parent 6102648 commit e2d3367

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
@@ -69,10 +69,8 @@
6969
"lint": "eslint --cache ./",
7070
"build": "babel src/ -d lib/ --copy-files",
7171
"pretest": "npm run lint",
72-
"test": "cross-env MONGODB_VERSION=${MONGODB_VERSION:=3.2.6} MONGODB_STORAGE_ENGINE=mmapv1 TESTING=1 $COVERAGE_OPTION jasmine",
73-
"test:win": "cross-env MONGODB_VERSION=${MONGODB_VERSION:=3.2.6} MONGODB_STORAGE_ENGINE=mmapv1 TESTING=1 jasmine",
74-
"coverage": "cross-env COVERAGE_OPTION='./node_modules/.bin/nyc' npm test",
75-
"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",
72+
"test": "cross-env MONGODB_VERSION=${MONGODB_VERSION:=3.2.6} MONGODB_STORAGE_ENGINE=mmapv1 TESTING=1 jasmine",
73+
"coverage": "cross-env MONGODB_VERSION=${MONGODB_VERSION:=3.2.6} MONGODB_STORAGE_ENGINE=mmapv1 TESTING=1 nyc jasmine",
7674
"start": "node ./bin/parse-server",
7775
"prepublish": "npm run build"
7876
},

0 commit comments

Comments
 (0)