mirror of
https://github.com/samba-team/samba.git
synced 2025-01-11 05:18:09 +03:00
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>
This commit is contained in:
parent
77d88d75f6
commit
a8e825c41c
@ -1,7 +1,12 @@
|
|||||||
# see https://docs.gitlab.com/ce/ci/yaml/README.html for all available options
|
# see https://docs.gitlab.com/ce/ci/yaml/README.html for all available options
|
||||||
|
|
||||||
before_script:
|
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:
|
build_samba:
|
||||||
stage: build
|
stage: build
|
||||||
|
Loading…
Reference in New Issue
Block a user