aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSchuyler Eldridge2019-02-01 14:52:32 -0500
committerGitHub2019-02-01 14:52:32 -0500
commit88c4a665ebba54b46b1d72a3d294f9ab27b96bbc (patch)
tree75bef5fc596aff3f51c4ebb7ed18bd8be40e7d7e
parent6b59614462ae8591db999fef9ba0d451e56d1c24 (diff)
Fork all sbt test and run tasks (#1002)
This avoids an apparent problem somewhere in sbt and/or scalatest where the JVM runs out of metaspace if you repeatedly run tasks. This is an annoyance for FIRRTL developers or users that keep an sbt session open. This kludges around that by forking all tasks into a separate JVM. Signed-off-by: Schuyler Eldridge <schuyler.eldridge@ibm.com>
-rw-r--r--build.sbt3
1 files changed, 3 insertions, 0 deletions
diff --git a/build.sbt b/build.sbt
index 0f387275..216ecd19 100644
--- a/build.sbt
+++ b/build.sbt
@@ -161,3 +161,6 @@ scalacOptions in Compile in doc ++= Seq(
"-doc-title", name.value,
"-doc-root-content", baseDirectory.value+"/root-doc.txt"
) ++ scalacOptionsVersion(scalaVersion.value)
+
+fork := true
+Test / testForkedParallel := true