From e76450c83493b97ae0aed51a16c820673532b2db Mon Sep 17 00:00:00 2001 From: Kailuo Wang Date: Fri, 19 Aug 2016 11:32:30 -0400 Subject: [PATCH] fix botBuild value on travis --- .travis.yml | 2 +- build.sbt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 9a45ec685f..d65ed3d5a2 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) )