diff --git a/.travis.yml b/.travis.yml index 272cd95825..7b5f1cbbc4 100644 --- a/.travis.yml +++ b/.travis.yml @@ -27,7 +27,7 @@ env: - secure: Kf44XQFpq2QGe3rn98Dsf5Uz3WXzPDralS54co7sqT5oQGs1mYLYZRYz+I75ZSo5ffZ86H7M+AI9YFofqGwAjBixBbqf1tGkUh3oZp2fN3QfqzazGV3HzC+o41zALG5FL+UBaURev9ChQ5fYeTtFB7YAzejHz4y5E97awk934Rg= - secure: QbNAu0jCaKrwjJi7KZtYEBA/pYbTJ91Y1x/eLAJpsamswVOvwnThA/TLYuux+oiZQCiDUpBzP3oxksIrEEUAhl0lMtqRFY3MrcUr+si9NIjX8hmoFwkvZ5o1b7pmLF6Vz3rQeP/EWMLcljLzEwsrRXeK0Ei2E4vFpsg8yz1YXJg= - TRAVIS_NODE_VERSION="4" - - CATS_BOT_BUILD=true + cache: directories: - $HOME/.sbt/0.13/dependency diff --git a/build.sbt b/build.sbt index 8080755ac7..765b439ebf 100644 --- a/build.sbt +++ b/build.sbt @@ -91,7 +91,7 @@ lazy val commonJsSettings = Seq( requiresDOM := false, jsEnv := NodeJSEnv().value, // Only used for scala.js for now - botBuild := sys.props.getOrElse("CATS_BOT_BUILD", default="false") == "true", + 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) )