Fix tests

This commit is contained in:
Eugene Yokota 2016-04-25 05:45:48 -04:00
parent a20da88a45
commit f4792f77d6
7 changed files with 4 additions and 33 deletions

View File

@ -1,5 +1,5 @@
lazy val root = (project in file(".")).
aggregate((if(file("aggregate").exists) Seq(sub: sbt.ProjectReference) else Nil): _*)
aggregateSeq((if(file("aggregate").exists) Seq(sub: sbt.ProjectReference) else Nil))
lazy val sub = (project in file("sub")).
aggregate(sub2)

View File

@ -1,10 +1,9 @@
import sbt._
import Keys._
import Import._
import Project.Initialize
import Def.Initialize
object Marker extends AutoPlugin
{
object Marker extends AutoPlugin {
override def trigger = allRequirements
override def requires = sbt.plugins.JvmPlugin
object autoImport {

View File

@ -2,7 +2,7 @@ import Import._
import complete.Parser
import complete.DefaultParsers._
import sbinary.DefaultProtocol._
import Project.Initialize
import Def.Initialize
val keep = TaskKey[Int]("keep")
val persisted = TaskKey[Int]("persist")

View File

@ -1,8 +0,0 @@
lazy val root = (project in file(".")).
aggregate(logic, ui)
lazy val logic = (project in file("logic")).
delegateTo(LocalProject("root"))
lazy val ui = (project in file("ui")).
delegateTo(LocalProject("root"))

View File

@ -1 +0,0 @@
> compile

View File

@ -1,14 +0,0 @@
import complete.DefaultParsers._
val check = InputKey[Unit]("check-max-errors")
lazy val root = (project in file("."))
lazy val sub = (project in file("sub")).
delegateTo(root).
settings(check <<= checkTask)
lazy val checkTask = InputTask(_ => Space ~> NatBasic) { result =>
(result, maxErrors) map { (i, max) =>
if(i != max) sys.error("Expected max-errors to be " + i + ", but it was " + max)
}
}

View File

@ -1,5 +0,0 @@
> sub/check-max-errors 100
> set maxErrors := 17
> sub/check-max-errors 17
> set maxErrors in LocalProject("sub") := 13
> sub/check-max-errors 13