2017-02-27 16:15:15 +01:00
|
|
|
#!/usr/bin/env bash
|
2018-09-28 17:55:42 +02:00
|
|
|
set -euvx
|
2015-06-16 20:17:07 +02:00
|
|
|
|
2017-02-27 16:15:15 +01:00
|
|
|
downloadInstallSbtExtras() {
|
2017-07-08 14:18:03 +02:00
|
|
|
mkdir -p bin
|
2017-02-27 16:15:15 +01:00
|
|
|
curl -L -o bin/sbt https://github.com/paulp/sbt-extras/raw/9ade5fa54914ca8aded44105bf4b9a60966f3ccd/sbt
|
|
|
|
|
chmod +x bin/sbt
|
2015-06-16 20:17:07 +02:00
|
|
|
}
|
|
|
|
|
|
2018-09-28 18:31:16 +02:00
|
|
|
sbtPgpCoursier() {
|
|
|
|
|
[ "${SBT_PGP_COURSIER:-""}" = 1 ]
|
|
|
|
|
}
|
|
|
|
|
|
2017-05-04 15:25:49 +02:00
|
|
|
sbtShading() {
|
2018-09-28 17:55:42 +02:00
|
|
|
[ "${SBT_SHADING:-""}" = 1 ]
|
2017-05-04 15:25:49 +02:00
|
|
|
}
|
|
|
|
|
|
2017-02-27 16:15:15 +01:00
|
|
|
runSbtCoursierTests() {
|
2018-10-17 14:18:04 +02:00
|
|
|
./metadata/scripts/with-test-repo.sh sbt ++$TRAVIS_SCALA_VERSION sbt-coursier/test "sbt-coursier/scripted sbt-coursier-group-$SBT_COURSIER_TEST_GROUP/*"
|
2017-02-27 16:15:15 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
runSbtShadingTests() {
|
2018-09-28 17:55:42 +02:00
|
|
|
sbt ++$TRAVIS_SCALA_VERSION sbt-shading/scripted
|
2017-07-08 14:18:03 +02:00
|
|
|
}
|
|
|
|
|
|
2018-09-28 18:31:16 +02:00
|
|
|
runSbtPgpCoursierTests() {
|
|
|
|
|
addPgpKeys
|
|
|
|
|
sbt ++$TRAVIS_SCALA_VERSION sbt-pgp-coursier/scripted
|
|
|
|
|
}
|
|
|
|
|
|
2017-06-06 19:51:38 +02:00
|
|
|
addPgpKeys() {
|
|
|
|
|
for key in b41f2bce 9fa47a44 ae548ced b4493b94 53a97466 36ee59d9 dc426429 3b80305d 69e0a56c fdd5c0cd 35543c27 70173ee5 111557de 39c263a9; do
|
|
|
|
|
gpg --keyserver keyserver.ubuntu.com --recv "$key"
|
|
|
|
|
done
|
|
|
|
|
}
|
|
|
|
|
|
2017-02-27 16:15:15 +01:00
|
|
|
|
|
|
|
|
downloadInstallSbtExtras
|
2017-07-08 14:18:03 +02:00
|
|
|
|
2018-09-28 17:55:42 +02:00
|
|
|
if sbtShading; then
|
|
|
|
|
runSbtShadingTests
|
2018-09-28 18:31:16 +02:00
|
|
|
elif sbtPgpCoursier; then
|
|
|
|
|
runSbtPgpCoursierTests
|
2017-02-27 16:15:15 +01:00
|
|
|
else
|
2018-09-28 17:55:42 +02:00
|
|
|
runSbtCoursierTests
|
2015-06-16 20:17:07 +02:00
|
|
|
fi
|
2015-06-17 19:36:53 +02:00
|
|
|
|