質問

How do I make target "package" depend on target "test" ?

There is a solution here: Force sbt 0.11 to run tests But it doesn't really work with the xsbt-web-plugin.

役に立ちましたか?

解決

Here's what I did:

Keys.`package` <<= (test in Test, Keys.`package` in Compile) map { (_, in) =>
  println("after package & test")
  in
}

It runs test, and iff the tests were successful, runs package task. (tested on fresh install of lift-2.5-RC2)

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top