Tweak bootstrap test

This commit is contained in:
Alexandre Archambault 2018-04-30 00:02:01 +02:00
parent 7b34e7307c
commit e37fb65fba
1 changed files with 4 additions and 2 deletions

View File

@ -111,8 +111,10 @@ publish() {
testBootstrap() {
if [ "$SCALA_VERSION" = 2.12 ]; then
sbt scalaFromEnv "project cli" pack
cli/target/pack/bin/coursier bootstrap -o cs-echo io.get-coursier:echo:1.0.0
if [ "$(./cs-echo foo)" != foo ]; then
cli/target/pack/bin/coursier bootstrap -o cs-echo io.get-coursier:echo:1.0.1
local OUT="$(./cs-echo foo)"
if [ "$OUT" != foo ]; then
echo "Error: unexpected output from bootstrapped echo command." 1>&2
exit 1
fi