From 664d1769a0472ef8c833883ff7a8abde5e5c0fab Mon Sep 17 00:00:00 2001 From: "Frank S. Thomas" Date: Tue, 5 Dec 2023 15:09:28 +0100 Subject: [PATCH] Use sbt-tpolecat's DevMode if CI env var is not set --- build.sbt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/build.sbt b/build.sbt index d8b1ddcca6..40dc2ab2b9 100644 --- a/build.sbt +++ b/build.sbt @@ -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