-
Notifications
You must be signed in to change notification settings - Fork 65
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #65 from alecgibson/reduce-test-flakiness
Reduce test flakiness
- Loading branch information
Showing
2 changed files
with
10 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters