mirror of https://github.com/sbt/sbt.git
Test bootstrap generation
This commit is contained in:
parent
e978795e8e
commit
1113555ed7
|
|
@ -78,6 +78,8 @@ lazy val bootstrap = project
|
|||
.settings(
|
||||
pureJava,
|
||||
dontPublish,
|
||||
// seems not to be automatically found with sbt 0.13.16-M1 :-/
|
||||
mainClass := Some("coursier.Bootstrap"),
|
||||
renameMainJar("bootstrap.jar")
|
||||
)
|
||||
|
||||
|
|
@ -261,6 +263,7 @@ lazy val coursier = project
|
|||
`sbt-launcher`,
|
||||
web,
|
||||
doc,
|
||||
echo,
|
||||
`http-server`,
|
||||
okhttp
|
||||
)
|
||||
|
|
|
|||
|
|
@ -176,6 +176,17 @@ publish() {
|
|||
sbt ++${SCALA_VERSION} publish
|
||||
}
|
||||
|
||||
testBootstrap() {
|
||||
if is211; then
|
||||
sbt ++${SCALA_VERSION} echo/publishLocal cli/pack
|
||||
cli/target/pack/bin/coursier bootstrap -o cs-echo io.get-coursier:echo_2.11:1.0.0-SNAPSHOT
|
||||
if [ "$(./cs-echo foo)" != foo ]; then
|
||||
echo "Error: unexpected output from bootstrapped echo command." 1>&2
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
|
||||
# TODO Add coverage once https://github.com/scoverage/sbt-scoverage/issues/111 is fixed
|
||||
|
||||
|
|
@ -206,6 +217,8 @@ else
|
|||
else
|
||||
runJvmTests
|
||||
|
||||
testBootstrap
|
||||
|
||||
validateReadme
|
||||
checkBinaryCompatibility
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue