Skip to content

Commit

Permalink
Use sbt-tpolecat's DevMode if CI env var is not set
Browse files Browse the repository at this point in the history
  • Loading branch information
fthomas committed Dec 5, 2023
1 parent 9ac858c commit 664d176
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,12 @@ ThisBuild / dynverSeparator := "-"

ThisBuild / evictionErrorLevel := Level.Info

ThisBuild / tpolecatDefaultOptionsMode := {
val isCiBuild = sys.env.get("CI").fold(false)(_ == "true")
println(s"isCiBuild = $isCiBuild")
if (isCiBuild) org.typelevel.sbt.tpolecat.CiMode else org.typelevel.sbt.tpolecat.DevMode
}

/// projects

lazy val root = project
Expand Down

0 comments on commit 664d176

Please sign in to comment.