From 9bad87905fcdc21e20aace4cea8174bb5b4371a6 Mon Sep 17 00:00:00 2001 From: Tyler Brock Date: Fri, 20 May 2016 14:18:41 -0700 Subject: [PATCH] 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 --- .travis.yml | 1 + package.json | 4 ++-- spec/helper.js | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index 68052a1f..e6248cfd 100644 --- a/.travis.yml +++ b/.travis.yml @@ -8,6 +8,7 @@ env: matrix: - MONGODB_VERSION=2.6.11 - MONGODB_VERSION=3.0.8 + - MONGODB_VERSION=3.2.6 branches: only: - master diff --git a/package.json b/package.json index ac8bc7e0..c8f36227 100644 --- a/package.json +++ b/package.json @@ -59,13 +59,13 @@ "deep-diff": "^0.3.3", "gaze": "^1.0.0", "jasmine": "^2.3.2", - "mongodb-runner": "3.2.2", + "mongodb-runner": "^3.3.2", "nodemon": "^1.8.1" }, "scripts": { "dev": "npm run build && node bin/dev", "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: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", diff --git a/spec/helper.js b/spec/helper.js index 049c9664..5d804d12 100644 --- a/spec/helper.js +++ b/spec/helper.js @@ -1,6 +1,6 @@ // 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 DatabaseAdapter = require('../src/DatabaseAdapter');