sbt/scripts/launch-test-repo.sh

21 lines
542 B
Bash
Executable File

#!/usr/bin/env bash
set -e
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_2.11:$VERSION" \
-r https://dl.bintray.com/scalaz/releases
./coursier launch \
"io.get-coursier:http-server_2.11:$VERSION" \
-- \
-d tests/jvm/src/test/resources/test-repo/http/abc.com \
-u user -P pass -r realm \
-v \
"$@" &