Skip to content

Commit

Permalink
Replace botBuild with sbt-travisci's isTravisBuild (typelevel#1844)
Browse files Browse the repository at this point in the history
Both settings check if the `TRAVIS` environment variable is set.
  • Loading branch information
fthomas authored and Luka Jacobowitz committed Sep 1, 2017
1 parent 1432d1b commit baa79be
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ import ReleaseTransformations._
import scala.xml.transform.{RewriteRule, RuleTransformer}
import org.scalajs.sbtplugin.cross.CrossProject

lazy val botBuild = settingKey[Boolean]("Build by TravisCI instead of local dev environment")

lazy val scoverageSettings = Seq(
coverageMinimum := 60,
coverageFailOnMinimum := false,
Expand Down Expand Up @@ -82,10 +80,8 @@ lazy val commonJsSettings = Seq(
parallelExecution := false,
requiresDOM := false,
jsEnv := new org.scalajs.jsenv.nodejs.NodeJSEnv(),
// Only used for scala.js for now
botBuild := scala.sys.env.get("TRAVIS").isDefined,
// batch mode decreases the amount of memory needed to compile scala.js code
scalaJSOptimizerOptions := scalaJSOptimizerOptions.value.withBatchMode(botBuild.value),
scalaJSOptimizerOptions := scalaJSOptimizerOptions.value.withBatchMode(isTravisBuild.value),
doctestGenTests := Seq.empty,
doctestWithDependencies := false
)
Expand Down

0 comments on commit baa79be

Please sign in to comment.