Skip to content

Reduce test flakiness #65

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Aug 6, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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