2017-03-23 15:19:07 +01:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
set -e
|
|
|
|
|
|
2017-12-15 18:02:24 +01:00
|
|
|
VERSION="1.0.0"
|
2017-03-23 15:19:07 +01:00
|
|
|
|
|
|
|
|
cd "$(dirname "$0")/.."
|
|
|
|
|
|
2017-04-27 16:10:57 +02:00
|
|
|
# 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 \
|
2017-05-15 15:32:51 +02:00
|
|
|
"io.get-coursier:http-server_2.12:$VERSION" \
|
2017-04-27 16:10:57 +02:00
|
|
|
-r https://dl.bintray.com/scalaz/releases
|
|
|
|
|
|
2017-03-23 15:19:07 +01:00
|
|
|
./coursier launch \
|
2017-05-15 15:32:51 +02:00
|
|
|
"io.get-coursier:http-server_2.12:$VERSION" \
|
2017-03-23 15:19:07 +01:00
|
|
|
-- \
|
|
|
|
|
-d tests/jvm/src/test/resources/test-repo/http/abc.com \
|
|
|
|
|
-u user -P pass -r realm \
|
|
|
|
|
-v \
|
|
|
|
|
"$@" &
|