run tests against mongodb 4.0 (#5250)

* run tests against mongodb 4.0

* Adds compatibility shields
This commit is contained in:
Florent Vilmart
2018-12-18 11:41:18 -05:00
committed by GitHub
parent 315d3bfee8
commit c762ee4b43
3 changed files with 10 additions and 4 deletions

View File

@@ -27,8 +27,8 @@ env:
global: global:
- COVERAGE_OPTION='./node_modules/.bin/nyc' - COVERAGE_OPTION='./node_modules/.bin/nyc'
matrix: matrix:
- MONGODB_VERSION=3.2.13 - MONGODB_VERSION=4.0.4
- MONGODB_VERSION=3.4.4 - MONGODB_VERSION=3.6.9
- PARSE_SERVER_TEST_DB=postgres - PARSE_SERVER_TEST_DB=postgres
- PARSE_SERVER_TEST_CACHE=redis - PARSE_SERVER_TEST_CACHE=redis
- NODE_VERSION=11.4.0 - NODE_VERSION=11.4.0

View File

@@ -7,6 +7,12 @@
[![Join Chat](https://img.shields.io/badge/gitter-join%20chat%20%E2%86%92-brightgreen.svg)](https://gitter.im/ParsePlatform/Chat) [![Join Chat](https://img.shields.io/badge/gitter-join%20chat%20%E2%86%92-brightgreen.svg)](https://gitter.im/ParsePlatform/Chat)
[![Greenkeeper badge](https://badges.greenkeeper.io/parse-community/parse-server.svg)](https://greenkeeper.io/) [![Greenkeeper badge](https://badges.greenkeeper.io/parse-community/parse-server.svg)](https://greenkeeper.io/)
[![](https://img.shields.io/badge/mongodb-3.2-green.svg?logo=mongodb&style=flat)]()
[![](https://img.shields.io/badge/mongodb-3.4-green.svg?logo=mongodb&style=flat)]()
[![](https://img.shields.io/badge/mongodb-3.6-green.svg?logo=mongodb&style=flat)]()
[![](https://img.shields.io/badge/mongodb-4.0-green.svg?logo=mongodb&style=flat)]()
Parse Server is an [open source version of the Parse backend](http://blog.parseplatform.org/announcements/introducing-parse-server-and-the-database-migration-tool/) that can be deployed to any infrastructure that can run Node.js. Parse Server is an [open source version of the Parse backend](http://blog.parseplatform.org/announcements/introducing-parse-server-and-the-database-migration-tool/) that can be deployed to any infrastructure that can run Node.js.
Parse Server works with the Express web application framework. It can be added to existing web applications, or run by itself. Parse Server works with the Express web application framework. It can be added to existing web applications, or run by itself.

View File

@@ -76,8 +76,8 @@
"lint": "flow && eslint --cache ./", "lint": "flow && eslint --cache ./",
"build": "babel src/ -d lib/ --copy-files", "build": "babel src/ -d lib/ --copy-files",
"watch": "babel --watch src/ -d lib/ --copy-files", "watch": "babel --watch src/ -d lib/ --copy-files",
"test": "cross-env MONGODB_VERSION=${MONGODB_VERSION:=3.2.6} MONGODB_STORAGE_ENGINE=mmapv1 TESTING=1 jasmine", "test": "cross-env MONGODB_VERSION=${MONGODB_VERSION:=4.0.4} MONGODB_STORAGE_ENGINE=mmapv1 TESTING=1 jasmine",
"coverage": "cross-env MONGODB_VERSION=${MONGODB_VERSION:=3.2.6} MONGODB_STORAGE_ENGINE=mmapv1 TESTING=1 nyc jasmine", "coverage": "cross-env MONGODB_VERSION=${MONGODB_VERSION:=4.0.4} MONGODB_STORAGE_ENGINE=mmapv1 TESTING=1 nyc jasmine",
"start": "node ./bin/parse-server", "start": "node ./bin/parse-server",
"prepare": "npm run build", "prepare": "npm run build",
"postinstall": "node -p 'require(\"./postinstall.js\")()'" "postinstall": "node -p 'require(\"./postinstall.js\")()'"