From: Andrew Bartlett Date: Tue, 20 Mar 2018 01:15:47 +0000 (+1300) Subject: gitlab-ci: Create swap space to work around the 2G image X-Git-Tag: talloc-2.1.13~227 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a8e825c41c4b829a174451bd02162c763a2e887e;p=thirdparty%2Fsamba.git gitlab-ci: Create swap space to work around the 2G image Signed-off-by: Andrew Bartlett Reviewed-by: Gary Lockyer --- diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 60accd463a7..287011cd568 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,7 +1,12 @@ # see https://docs.gitlab.com/ce/ci/yaml/README.html for all available options before_script: - - echo "Build starting ..." + - echo "Build starting (preparing swap)..." + - if [ $(df -m / --output=avail | tail -n1) -gt 10240 ]; then + sudo dd if=/dev/zero of=/samba-swap bs=1M count=6144; + sudo mkswap /samba-swap; + sudo swapon /samba-swap; + fi build_samba: stage: build