【发布时间】:2013-03-10 23:28:26
【问题描述】:
如何使目标“包”依赖于目标“测试”?
这里有一个解决方案:Force sbt 0.11 to run tests 但它不适用于 xsbt-web-plugin。
【问题讨论】:
标签: sbt lift xsbt-web-plugin
如何使目标“包”依赖于目标“测试”?
这里有一个解决方案:Force sbt 0.11 to run tests 但它不适用于 xsbt-web-plugin。
【问题讨论】:
标签: sbt lift xsbt-web-plugin
这就是我所做的:
Keys.`package` <<= (test in Test, Keys.`package` in Compile) map { (_, in) =>
println("after package & test")
in
}
它运行测试,如果测试成功,运行包任务。 (在全新安装的 lift-2.5-RC2 上测试)
【讨论】:
package package in Compile) dependsOn (test in Test)