From c762ee4b43ba950eaa0e54f749a9e9da89407ad9 Mon Sep 17 00:00:00 2001 From: Florent Vilmart <364568+flovilmart@users.noreply.github.com> Date: Tue, 18 Dec 2018 11:41:18 -0500 Subject: [PATCH] run tests against mongodb 4.0 (#5250) * run tests against mongodb 4.0 * Adds compatibility shields --- .travis.yml | 4 ++-- README.md | 6 ++++++ package.json | 4 ++-- 3 files changed, 10 insertions(+), 4 deletions(-) diff --git a/.travis.yml b/.travis.yml index e72a2e2d..d060dc34 100644 --- a/.travis.yml +++ b/.travis.yml @@ -27,8 +27,8 @@ env: global: - COVERAGE_OPTION='./node_modules/.bin/nyc' matrix: - - MONGODB_VERSION=3.2.13 - - MONGODB_VERSION=3.4.4 + - MONGODB_VERSION=4.0.4 + - MONGODB_VERSION=3.6.9 - PARSE_SERVER_TEST_DB=postgres - PARSE_SERVER_TEST_CACHE=redis - NODE_VERSION=11.4.0 diff --git a/README.md b/README.md index 1b67381d..ccd6538a 100644 --- a/README.md +++ b/README.md @@ -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) [![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 works with the Express web application framework. It can be added to existing web applications, or run by itself. diff --git a/package.json b/package.json index cba8cca0..db74f411 100644 --- a/package.json +++ b/package.json @@ -76,8 +76,8 @@ "lint": "flow && eslint --cache ./", "build": "babel 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", - "coverage": "cross-env MONGODB_VERSION=${MONGODB_VERSION:=3.2.6} MONGODB_STORAGE_ENGINE=mmapv1 TESTING=1 nyc 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:=4.0.4} MONGODB_STORAGE_ENGINE=mmapv1 TESTING=1 nyc jasmine", "start": "node ./bin/parse-server", "prepare": "npm run build", "postinstall": "node -p 'require(\"./postinstall.js\")()'"