Skip to content

Commit

Permalink
Only run coverage on JVM
Browse files Browse the repository at this point in the history
  • Loading branch information
armanbilge committed Jul 19, 2021
1 parent e3c326e commit ed43440
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,14 @@ val baseSettings = Seq(
scalacOptions in (Test, console) ~= {
_.filterNot(Set("-Ywarn-unused-import"))
},
coverageHighlighting := true,
coverageEnabled := (if (scalaVersion.value.startsWith("2.13")) coverageEnabled.value else false),
(scalastyleSources in Compile) ++= (unmanagedSourceDirectories in Compile).value
)

val baseJVMSettings = Seq(
coverageHighlighting := true,
coverageEnabled := (if (scalaVersion.value.startsWith("2.13")) coverageEnabled.value else false)
)

val allSettings = baseSettings ++ publishSettings

val docMappingsApiDir = settingKey[String]("Subdirectory in site target directory for API docs")
Expand All @@ -66,6 +69,7 @@ val fs2 = crossProject(JVMPlatform, JSPlatform)
.crossType(CrossType.Pure)
.in(file("."))
.settings(allSettings)
.jvmSettings(baseJVMSettings)
.settings(
moduleName := "circe-fs2",
mimaPreviousArtifacts := Set("io.circe" %% "circe-fs2" % previousCirceFs2Version),
Expand Down

0 comments on commit ed43440

Please sign in to comment.