Skip to content

Commit

Permalink
Use sbt's insideCI setting
Browse files Browse the repository at this point in the history
  • Loading branch information
fthomas committed Dec 5, 2023
1 parent fa9a376 commit dad2748
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,7 @@ ThisBuild / dynverSeparator := "-"
ThisBuild / evictionErrorLevel := Level.Info

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

/// projects
Expand Down

0 comments on commit dad2748

Please sign in to comment.