From bc1b7879745a0828cce81bc5dedae2548748a7fc Mon Sep 17 00:00:00 2001 From: rschamp Date: Fri, 20 Sep 2019 13:29:54 -0400 Subject: [PATCH] Allow Node to use more memory for old space MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This flag essentially configures how much memory Node can use. If it’s too low, then Node processes may hang as Node spends time garbage collecting. Increasing it allows more memory to be used before garbage collection is necessary. Travis VMs have 7.5GB of memory, so set the limit to just below that to avoid running out of memory completely. --- .travis.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 27be5e6fb..575ce62ee 100644 --- a/.travis.yml +++ b/.travis.yml @@ -7,11 +7,12 @@ node_js: - 8 env: global: + - CHROMEDRIVER_VERSION=LATEST - NODE_ENV=production - - SMOKE_URL=https://llk.github.io/scratch-gui/$TRAVIS_PULL_REQUEST_BRANCH + - NODE_OPTIONS=--max-old-space-size=7250 - NPM_TAG=latest - RELEASE_VERSION="0.1.0-prerelease.$(date +'%Y%m%d%H%M%S')" - - CHROMEDRIVER_VERSION=LATEST + - SMOKE_URL=https://llk.github.io/scratch-gui/$TRAVIS_PULL_REQUEST_BRANCH cache: directories: - node_modules