Skip to content

Commit e23c62e

Browse files
committed
ci: add node@10, small fixes
1 parent e31265f commit e23c62e

File tree

3 files changed

+11
-7
lines changed

3 files changed

+11
-7
lines changed

.eslintignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
flow-typed/*
22
lib/*
3+
postinstall.js

.travis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ cache:
88
notifications:
99
email: true
1010
node_js:
11+
- "10"
1112
- "9"
1213
- "8"
1314
before_install: yarn global add greenkeeper-lockfile@1

postinstall.js

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,13 @@ It helps to skip timeout setup `jasmine.DEFAULT_TIMEOUT_INTERVAL = 60000;`
88
when first test run hits MongoDB binary downloading to the cache.
99
*/
1010

11-
const MongoBinary = require('./lib/util/MongoBinary').default;
11+
if (require.resolve('./lib/util/MongoBinary')) {
12+
const MongoBinary = require('./lib/util/MongoBinary').default;
1213

13-
console.log('mongodb-memory-server: checking MongoDB binaries cache...');
14-
MongoBinary.getPath({
15-
version: 'latest',
16-
}).then(binPath => {
17-
console.log(`mongodb-memory-server: binary path is ${binPath}`);
18-
});
14+
console.log('mongodb-memory-server: checking MongoDB binaries cache...');
15+
MongoBinary.getPath({
16+
version: 'latest',
17+
}).then(binPath => {
18+
console.log(`mongodb-memory-server: binary path is ${binPath}`);
19+
});
20+
}

0 commit comments

Comments
 (0)