Skip to content

Commit 9bad879

Browse files
TylerBrockdrew-gross
authored andcommitted
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
1 parent b218368 commit 9bad879

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

.travis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ env:
88
matrix:
99
- MONGODB_VERSION=2.6.11
1010
- MONGODB_VERSION=3.0.8
11+
- MONGODB_VERSION=3.2.6
1112
branches:
1213
only:
1314
- master

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,13 +59,13 @@
5959
"deep-diff": "^0.3.3",
6060
"gaze": "^1.0.0",
6161
"jasmine": "^2.3.2",
62-
"mongodb-runner": "3.2.2",
62+
"mongodb-runner": "^3.3.2",
6363
"nodemon": "^1.8.1"
6464
},
6565
"scripts": {
6666
"dev": "npm run build && node bin/dev",
6767
"build": "./node_modules/.bin/babel src/ -d lib/",
68-
"pretest": "cross-env MONGODB_VERSION=${MONGODB_VERSION:=3.0.8} ./node_modules/.bin/mongodb-runner start",
68+
"pretest": "cross-env MONGODB_VERSION=${MONGODB_VERSION:=3.2.6} MONGODB_STORAGE_ENGINE=mmapv1 ./node_modules/.bin/mongodb-runner start",
6969
"test": "cross-env NODE_ENV=test TESTING=1 ./node_modules/.bin/babel-node $COVERAGE_OPTION ./node_modules/jasmine/bin/jasmine.js",
7070
"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",
7171
"posttest": "./node_modules/.bin/mongodb-runner stop",

spec/helper.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// Sets up a Parse API server for testing.
22

3-
jasmine.DEFAULT_TIMEOUT_INTERVAL = 2000;
3+
jasmine.DEFAULT_TIMEOUT_INTERVAL = 15000;
44

55
var cache = require('../src/cache').default;
66
var DatabaseAdapter = require('../src/DatabaseAdapter');

0 commit comments

Comments
 (0)