Skip to content

Commit

Permalink
Merge pull request #65 from alecgibson/reduce-test-flakiness
Browse files Browse the repository at this point in the history
Reduce test flakiness
  • Loading branch information
ericyhwang authored Aug 6, 2018
2 parents 5a7c674 + fa734c9 commit 5c442f7
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 12 deletions.
20 changes: 9 additions & 11 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,29 +1,27 @@
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

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
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 5c442f7

Please sign in to comment.