Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Gary Lockyer <gary@catalyst.net.nz>
# 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