문제

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