summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Lawson2017-08-01 16:08:07 -0700
committerGitHub2017-08-01 16:08:07 -0700
commit5f485e925abc0d42a93bfe9e3f932ff9e924a1a4 (patch)
tree3333e8a1eecaa6b0d69c060b37ea4ca05f51d204
parent661aa017446693077670ab3d14a30e4804a5c1af (diff)
Update Makefile, build.sbt to support subproject coverage (#659)
-rw-r--r--Makefile2
-rw-r--r--build.sbt2
2 files changed, 3 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 5aba65ac..9cf211f2 100644
--- a/Makefile
+++ b/Makefile
@@ -45,7 +45,7 @@ checkstyle:
coverage:
$(SBT) $(SBT_FLAGS) coverage test
- $(SBT) $(SBT_FLAGS) coverageReport
+ $(SBT) $(SBT_FLAGS) coverageReport coverageAggregate
clean:
$(SBT) $(SBT_FLAGS) clean
diff --git a/build.sbt b/build.sbt
index d1b3eb79..9c909399 100644
--- a/build.sbt
+++ b/build.sbt
@@ -119,6 +119,8 @@ lazy val chisel = (project in file(".")).
// Prevent separate JARs from being generated for coreMacros and chiselFrontend.
dependsOn(coreMacros % "compile-internal;test-internal").
dependsOn(chiselFrontend % "compile-internal;test-internal").
+ // The following is required until sbt-scoverage correctly deals with inDependencies
+ aggregate(coreMacros, chiselFrontend).
settings(
scalacOptions in Test ++= Seq("-language:reflectiveCalls"),
scalacOptions in Compile in doc ++= Seq(