Port tests/serial

This commit is contained in:
Eugene Yokota 2016-03-29 02:33:48 -04:00
parent 1a8149568e
commit 85b9a78245
2 changed files with 27 additions and 17 deletions

View File

@ -0,0 +1,27 @@
val commonSettings = Seq(
libraryDependencies += "org.scalatest" %% "scalatest" % "1.9.1" % "test"
)
lazy val root = (project in file(".")).
aggregate(sub1, sub2).
settings(inThisBuild(List(
organization := "com.softwaremill",
version := "0.0.1-SNAPSHOT",
scalaVersion := "2.10.0"
)),
commonSettings
)
lazy val rootRef = LocalProject("root")
lazy val sub1 = project.
dependsOn(rootRef).
settings(
commonSettings
)
lazy val sub2 = project.
dependsOn(rootRef).
settings(
commonSettings
)

View File

@ -1,17 +0,0 @@
import sbt._
import Keys._
import Import._
object SomeBuild extends Build {
val buildSettings = Seq(
organization := "com.softwaremill",
version := "0.0.1-SNAPSHOT",
scalaVersion := "2.10.0",
libraryDependencies += "org.scalatest" %% "scalatest" % "1.9.1" % "test"
)
lazy val parent: Project = Project("root", file("."), aggregate = Seq(sub1,sub2)).settings(buildSettings : _*)
lazy val sub1: Project = Project("sub1", file("sub1")).settings(buildSettings : _*).dependsOn(parent)
lazy val sub2: Project = Project("sub2", file("sub2")).settings(buildSettings : _*).dependsOn(parent)
}