Add MongoDB 3.2 to test matrix (#1842)
* Add MongoDB 3.2 to test matrix - Updated mongodb-runner to support specifying storage engine - Specifying mmapv1 explictly because of new 3.2 default * Increase jasmine.DEFAULT_TIMEOUT_INTERVAL to 3 seconds * Use fixed mongodb-runner * Increase jasmine.DEFAULT_TIMEOUT_INTERVAL to 15 seconds * Update to mongodb-runner 3.3.2 upon release
This commit is contained in:
@@ -8,6 +8,7 @@ env:
|
|||||||
matrix:
|
matrix:
|
||||||
- MONGODB_VERSION=2.6.11
|
- MONGODB_VERSION=2.6.11
|
||||||
- MONGODB_VERSION=3.0.8
|
- MONGODB_VERSION=3.0.8
|
||||||
|
- MONGODB_VERSION=3.2.6
|
||||||
branches:
|
branches:
|
||||||
only:
|
only:
|
||||||
- master
|
- master
|
||||||
|
|||||||
@@ -59,13 +59,13 @@
|
|||||||
"deep-diff": "^0.3.3",
|
"deep-diff": "^0.3.3",
|
||||||
"gaze": "^1.0.0",
|
"gaze": "^1.0.0",
|
||||||
"jasmine": "^2.3.2",
|
"jasmine": "^2.3.2",
|
||||||
"mongodb-runner": "3.2.2",
|
"mongodb-runner": "^3.3.2",
|
||||||
"nodemon": "^1.8.1"
|
"nodemon": "^1.8.1"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "npm run build && node bin/dev",
|
"dev": "npm run build && node bin/dev",
|
||||||
"build": "./node_modules/.bin/babel src/ -d lib/",
|
"build": "./node_modules/.bin/babel src/ -d lib/",
|
||||||
"pretest": "cross-env MONGODB_VERSION=${MONGODB_VERSION:=3.0.8} ./node_modules/.bin/mongodb-runner start",
|
"pretest": "cross-env MONGODB_VERSION=${MONGODB_VERSION:=3.2.6} MONGODB_STORAGE_ENGINE=mmapv1 ./node_modules/.bin/mongodb-runner start",
|
||||||
"test": "cross-env NODE_ENV=test TESTING=1 ./node_modules/.bin/babel-node $COVERAGE_OPTION ./node_modules/jasmine/bin/jasmine.js",
|
"test": "cross-env NODE_ENV=test TESTING=1 ./node_modules/.bin/babel-node $COVERAGE_OPTION ./node_modules/jasmine/bin/jasmine.js",
|
||||||
"test:win": "npm run pretest && cross-env NODE_ENV=test TESTING=1 ./node_modules/.bin/babel-node ./node_modules/babel-istanbul/lib/cli.js cover -x **/spec/** ./node_modules/jasmine/bin/jasmine.js && npm run posttest",
|
"test:win": "npm run pretest && cross-env NODE_ENV=test TESTING=1 ./node_modules/.bin/babel-node ./node_modules/babel-istanbul/lib/cli.js cover -x **/spec/** ./node_modules/jasmine/bin/jasmine.js && npm run posttest",
|
||||||
"posttest": "./node_modules/.bin/mongodb-runner stop",
|
"posttest": "./node_modules/.bin/mongodb-runner stop",
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
// Sets up a Parse API server for testing.
|
// Sets up a Parse API server for testing.
|
||||||
|
|
||||||
jasmine.DEFAULT_TIMEOUT_INTERVAL = 2000;
|
jasmine.DEFAULT_TIMEOUT_INTERVAL = 15000;
|
||||||
|
|
||||||
var cache = require('../src/cache').default;
|
var cache = require('../src/cache').default;
|
||||||
var DatabaseAdapter = require('../src/DatabaseAdapter');
|
var DatabaseAdapter = require('../src/DatabaseAdapter');
|
||||||
|
|||||||
Reference in New Issue
Block a user