mirror of https://github.com/sbt/sbt.git
53 lines
1.2 KiB
Bash
Executable File
53 lines
1.2 KiB
Bash
Executable File
#!/usr/bin/env bash
|
|
set -euvx
|
|
|
|
if [ "$(expr substr $(uname -s) 1 5 2>/dev/null)" == "Linux" ]; then
|
|
SBT="sbt -C--plugin-version=2.0.0-RC6-8"
|
|
elif [ "$(uname)" == "Darwin" ]; then
|
|
SBT="sbt -C--plugin-version=2.0.0-RC6-8"
|
|
else
|
|
SBT="sbt.bat -C--plugin-version=2.0.0-RC6-8"
|
|
fi
|
|
|
|
lmCoursier() {
|
|
[ "${PLUGIN:-""}" = "sbt-lm-coursier" ]
|
|
}
|
|
|
|
runLmCoursierTests() {
|
|
if [ "$TEST_GROUP" = 1 ]; then
|
|
SCRIPTED_EXTRA="sbt-lm-coursier/*"
|
|
elif [ "$TEST_GROUP" = 2 ]; then
|
|
SCRIPTED_EXTRA="scala-211/*"
|
|
else
|
|
SCRIPTED_EXTRA=""
|
|
fi
|
|
|
|
# publishing locally to ensure shading runs fine
|
|
./metadata/scripts/with-test-repo.sh $SBT \
|
|
+lm-coursier-shaded/publishLocal \
|
|
+lm-coursier/test \
|
|
"sbt-lm-coursier/scripted shared-$TEST_GROUP/* $SCRIPTED_EXTRA"
|
|
}
|
|
|
|
runSbtCoursierTests() {
|
|
if [ "$TEST_GROUP" = 1 ]; then
|
|
SCRIPTED_EXTRA="sbt-coursier/*"
|
|
elif [ "$TEST_GROUP" = 2 ]; then
|
|
SCRIPTED_EXTRA="scala-211/*"
|
|
else
|
|
SCRIPTED_EXTRA=""
|
|
fi
|
|
|
|
./metadata/scripts/with-test-repo.sh $SBT \
|
|
sbt-coursier-shared/test \
|
|
"sbt-coursier/scripted shared-$TEST_GROUP/* $SCRIPTED_EXTRA"
|
|
}
|
|
|
|
|
|
if lmCoursier; then
|
|
runLmCoursierTests
|
|
else
|
|
runSbtCoursierTests
|
|
fi
|
|
|