From f93aca0f5506f576faea68d59b5cc9758b6ad1ad Mon Sep 17 00:00:00 2001 From: Alexandre Archambault Date: Thu, 27 Apr 2017 16:10:57 +0200 Subject: [PATCH] Tweak CI script --- scripts/launch-test-repo.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/scripts/launch-test-repo.sh b/scripts/launch-test-repo.sh index 0a8b1bb72..0e0685a7b 100755 --- a/scripts/launch-test-repo.sh +++ b/scripts/launch-test-repo.sh @@ -5,6 +5,12 @@ VERSION="${VERSION:-1.0.0-SNAPSHOT}" cd "$(dirname "$0")/.." +# synchronously fill cache so that two runs of this script don't try to download +# a same file at the same time (and one of them fail because of locks) +./coursier fetch \ + "io.get-coursier:http-server-java7_2.11:$VERSION" \ + -r https://dl.bintray.com/scalaz/releases + ./coursier launch \ "io.get-coursier:http-server-java7_2.11:$VERSION" \ -r https://dl.bintray.com/scalaz/releases \