From b2363f7445b837a1a05651afbe6dc2acfecd2bb8 Mon Sep 17 00:00:00 2001 From: Alec Gibson Date: Thu, 19 Jul 2018 14:09:53 +0100 Subject: [PATCH 1/2] Bump sharedb-mingo-memory version sharedb-mongo has a dependency on tests in sharedb-mingo-memory. These tests were [recently fixed][1] in sharedb-mingo-memory. This change bumps the patch version of that dependency here so that the tests are fixed on this library, too. [1]: https://github.com/share/sharedb-mingo-memory/pull/5 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 951d3ce5..a77360de 100644 --- a/package.json +++ b/package.json @@ -13,7 +13,7 @@ "expect.js": "^0.3.1", "istanbul": "^0.4.2", "mocha": "^2.3.3", - "sharedb-mingo-memory": "^1.0.0-beta" + "sharedb-mingo-memory": "^1.0.1" }, "scripts": { "test": "node_modules/.bin/mocha", From fa734c943c9164ae3df28258a246c2593bda6aca Mon Sep 17 00:00:00 2001 From: Alec Gibson Date: Thu, 19 Jul 2018 14:36:11 +0100 Subject: [PATCH 2/2] Run Travis tests against newer versions of Node and MongoDb --- .travis.yml | 20 +++++++++----------- 1 file changed, 9 insertions(+), 11 deletions(-) diff --git a/.travis.yml b/.travis.yml index 4248e13b..ddcb0f18 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,20 +1,17 @@ language: node_js node_js: - - 7 - - 6 - - 4 - - 0.10 + - "6" + - "8" + - "10" services: - docker env: - - MONGODB_VERSION="2.4" - MONGODB_VERSION="2.6" - - MONGODB_VERSION="3.0" - - MONGODB_VERSION="3.2" - - MONGODB_VERSION="3.4" + - MONGODB_VERSION="3.6" + - MONGODB_VERSION="4.0" before_install: - docker run -d -p 127.0.0.1:27017:27017 mongo:$MONGODB_VERSION @@ -22,8 +19,9 @@ before_install: before_script: - until nc -z localhost 27017; do echo Waiting for MongoDB; sleep 1; done -# Run twice due to Mongo flakiness -script: "npm run test-cover || npm run test-cover" +script: + - npm run test-cover # Send coverage data to Coveralls -after_script: "cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js" +after_script: + - cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js