diff options
author | Adriaan Moors <adriaan@lightbend.com> | 2016-07-28 08:43:13 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-07-28 08:43:13 -0700 |
commit | 16fd63b8db61fa08d7da1e125fbd1dff3384ff67 (patch) | |
tree | 73da51e80b0c94d680279ffd60f8ea65dffe34f3 /build.sbt | |
parent | efb74b73aa7ec157eb83c6cbf1fe341842357b2e (diff) | |
parent | faa4110fc7d8b92cac1e50a6952cdf3bc85d1cdf (diff) | |
download | scala-16fd63b8db61fa08d7da1e125fbd1dff3384ff67.tar.gz scala-16fd63b8db61fa08d7da1e125fbd1dff3384ff67.tar.bz2 scala-16fd63b8db61fa08d7da1e125fbd1dff3384ff67.zip |
Merge pull request #5292 from szeiger/wip/sbt-windows
Switch Windows CI build to sbt (w/ some sbt build improvements) [ci: last-only]
Diffstat (limited to 'build.sbt')
-rw-r--r-- | build.sbt | 27 |
1 files changed, 27 insertions, 0 deletions
@@ -768,6 +768,32 @@ lazy val root: Project = (project in file(".")) GenerateAnyVals.run(dir.getAbsoluteFile) state }, + testAll := { + val results = ScriptCommands.sequence[Result[Unit]](List( + (Keys.test in Test in junit).result, + (testOnly in IntegrationTest in testP).toTask(" -- run pos neg jvm").result, + (testOnly in IntegrationTest in testP).toTask(" -- res scalap specialized scalacheck").result, + (testOnly in IntegrationTest in testP).toTask(" -- instrumented presentation").result, + (testOnly in IntegrationTest in testP).toTask(" -- --srcpath scaladoc").result, + (Keys.test in Test in osgiTestFelix).result, + (Keys.test in Test in osgiTestEclipse).result, + (MiMa.mima in library).result, + (MiMa.mima in reflect).result, + Def.task(()).dependsOn( // Run these in parallel: + doc in Compile in library, + doc in Compile in reflect, + doc in Compile in compiler, + doc in Compile in scalap + ).result + )).value + val failed = results.map(_.toEither).collect { case Left(i) => i } + if(failed.nonEmpty) { + val log = streams.value.log + log.error(s"${failed.size} of ${results.length} test tasks failed:") + failed.foreach(i => log.error(s" - $i")) + throw new RuntimeException + } + }, antStyle := false, incOptions := incOptions.value.withNameHashing(!antStyle.value).withAntStyle(antStyle.value) ) @@ -837,6 +863,7 @@ lazy val buildDirectory = settingKey[File]("The directory where all build produc lazy val mkBin = taskKey[Seq[File]]("Generate shell script (bash or Windows batch).") lazy val mkQuick = taskKey[File]("Generate a full build, including scripts, in build/quick") lazy val mkPack = taskKey[File]("Generate a full build, including scripts, in build/pack") +lazy val testAll = taskKey[Unit]("Run all test tasks sequentially") // Defining these settings is somewhat redundant as we also redefine settings that depend on them. // However, IntelliJ's project import works better when these are set correctly. |