Skip to content

Commit

Permalink
Install peer dependencies for Travis
Browse files Browse the repository at this point in the history
  • Loading branch information
gkubisa committed May 23, 2018
1 parent b75b8cd commit 98fba07
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,11 @@ 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:
# Install explicitly for tests because sharedb is a peer dependency
- "npm i @teamwork/sharedb@^1.1.4 mongodb@^2.1.2"
# Run twice due to Mongo flakiness
- "npm run test-cover || npm run test-cover"

# Send coverage data to Coveralls
after_script: "cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js"

0 comments on commit 98fba07

Please sign in to comment.