aboutsummaryrefslogtreecommitdiffstats
path: root/.gitlab-ci.yml
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2018-03-20 14:15:47 +1300
committerAndrew Bartlett <abartlet@samba.org>2018-03-27 23:03:13 +0200
commita8e825c41c4b829a174451bd02162c763a2e887e (patch)
tree5a44d1c1b65e628b266452bda4f1604e97afeb16 /.gitlab-ci.yml
parent77d88d75f6262a855e818a9b2b4018f8b6ced7b0 (diff)
downloadsamba-a8e825c41c4b829a174451bd02162c763a2e887e.tar.gz
samba-a8e825c41c4b829a174451bd02162c763a2e887e.tar.xz
samba-a8e825c41c4b829a174451bd02162c763a2e887e.zip
gitlab-ci: Create swap space to work around the 2G image
Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Gary Lockyer <gary@catalyst.net.nz>
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r--.gitlab-ci.yml7
1 files changed, 6 insertions, 1 deletions
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