Skip to content

Commit

Permalink
ci: add node@10, small fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
nodkz committed May 31, 2018
1 parent e31265f commit e23c62e
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 7 deletions.
1 change: 1 addition & 0 deletions .eslintignore
@@ -1,2 +1,3 @@
flow-typed/*
lib/*
postinstall.js
1 change: 1 addition & 0 deletions .travis.yml
Expand Up @@ -8,6 +8,7 @@ cache:
notifications:
email: true
node_js:
- "10"
- "9"
- "8"
before_install: yarn global add greenkeeper-lockfile@1
Expand Down
16 changes: 9 additions & 7 deletions postinstall.js
Expand Up @@ -8,11 +8,13 @@ It helps to skip timeout setup `jasmine.DEFAULT_TIMEOUT_INTERVAL = 60000;`
when first test run hits MongoDB binary downloading to the cache.
*/

const MongoBinary = require('./lib/util/MongoBinary').default;
if (require.resolve('./lib/util/MongoBinary')) {
const MongoBinary = require('./lib/util/MongoBinary').default;

console.log('mongodb-memory-server: checking MongoDB binaries cache...');
MongoBinary.getPath({
version: 'latest',
}).then(binPath => {
console.log(`mongodb-memory-server: binary path is ${binPath}`);
});
console.log('mongodb-memory-server: checking MongoDB binaries cache...');
MongoBinary.getPath({
version: 'latest',
}).then(binPath => {
console.log(`mongodb-memory-server: binary path is ${binPath}`);
});
}

0 comments on commit e23c62e

Please sign in to comment.