Skip to content

Commit 93cc1c2

Browse files
committed
Trying with pretest and posttest
1 parent 1e5753b commit 93cc1c2

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

.travis.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ before_script:
4040
- psql -c 'create database parse_server_postgres_adapter_test_database;' -U postgres
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
43-
- silent=1 mongodb-runner --start
4443
- greenkeeper-lockfile-update
4544
script:
4645
- npm run lint

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,9 @@
9595
"lint": "flow && eslint --cache ./",
9696
"build": "babel src/ -d lib/ --copy-files",
9797
"watch": "babel --watch src/ -d lib/ --copy-files",
98+
"pretest": "mongodb-runner start",
9899
"test": "cross-env MONGODB_VERSION=${MONGODB_VERSION:=4.0.4} MONGODB_STORAGE_ENGINE=mmapv1 TESTING=1 jasmine",
100+
"posttest": "mongodb-runner stop",
99101
"coverage": "cross-env MONGODB_VERSION=${MONGODB_VERSION:=4.0.4} MONGODB_STORAGE_ENGINE=mmapv1 TESTING=1 nyc jasmine",
100102
"start": "node ./bin/parse-server",
101103
"prepare": "npm run build",

0 commit comments

Comments
 (0)