summaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
diff options
context:
space:
mode:
authorLukas Eipert <leipert@gitlab.com>2018-06-11 08:27:50 +0200
committerLukas Eipert <leipert@gitlab.com>2018-06-11 09:46:02 +0200
commit762c623997b2077258b59c70dcfae8a456d39fd2 (patch)
treeabedf68b7f9e988df7010ffa67b713cac8ec7fc5 /.gitlab-ci.yml
parent54a6ca6f38764dd1a863d0035af9541b5a52c583 (diff)
downloadgitlab-ce-762c623997b2077258b59c70dcfae8a456d39fd2.tar.gz
set max_old_space_size to 3.5 GB for compile-assets job
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r--.gitlab-ci.yml7
1 files changed, 7 insertions, 0 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 267a954d0eb..ba0c5074839 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -394,7 +394,11 @@ compile-assets:
- date
- yarn install --frozen-lockfile --cache-folder .yarn-cache
- date
+ - free -m
- bundle exec rake gitlab:assets:compile
+ variables:
+ # we override the max_old_space_size to prevent OOM errors
+ NODE_OPTIONS: --max_old_space_size=3584
artifacts:
expire_in: 7d
paths:
@@ -658,10 +662,13 @@ gitlab:assets:compile:
SKIP_STORAGE_VALIDATION: "true"
WEBPACK_REPORT: "true"
NO_COMPRESSION: "true"
+ # we override the max_old_space_size to prevent OOM errors
+ NODE_OPTIONS: --max_old_space_size=3584
script:
- date
- yarn install --frozen-lockfile --production --cache-folder .yarn-cache
- date
+ - free -m
- bundle exec rake gitlab:assets:compile
artifacts:
name: webpack-report