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