From 3a94b2a805fcf27bad06a60f1afd1e0acd20aa3a Mon Sep 17 00:00:00 2001 From: Michael Klishin Date: Sat, 8 Dec 2018 22:50:07 +0300 Subject: [PATCH] Move the sleep to .travis.yml Since it's only really necessary in CI scenarios. --- .travis.yml | 6 ++++-- bin/ci/before_script.sh | 3 --- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/.travis.yml b/.travis.yml index 62d76e3..745a331 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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 diff --git a/bin/ci/before_script.sh b/bin/ci/before_script.sh index 77f1a97..fae6dd8 100755 --- a/bin/ci/before_script.sh +++ b/bin/ci/before_script.sh @@ -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