Move the sleep to .travis.yml

Since it's only really necessary in CI scenarios.
This commit is contained in:
Michael Klishin 2018-12-08 22:50:07 +03:00
parent 1e313f990c
commit 3a94b2a805
No known key found for this signature in database
GPG key ID: 2C0DA45F4F944489
2 changed files with 4 additions and 5 deletions

View file

@ -3,15 +3,17 @@ sudo: required
lein: lein
dist: xenial
before_script:
# Give MongoDB server some time to boot
- sleep 15
- mongod --version
- ./bin/ci/before_script.sh
script: lein do clean, javac, test
jdk:
- oraclejdk8
- oraclejdk9
- oraclejdk11
services:
- mongodb
branches:
only:
- master
- 3.0.x-stable
- 3.5.x-stable

View file

@ -1,8 +1,5 @@
#!/bin/sh
# MongoDB seems to need some time to boot first. MK.
sleep 15
# MongoDB Java driver won't run authentication twice on the same DB instance,
# so we need to use multiple DBs.
mongo --eval 'db.createUser({"user": "clojurewerkz/monger", "pwd": "monger", roles: ["dbAdmin"], mechanisms: ["SCRAM-SHA-1"], passwordDigestor: "client"})' monger-test