1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-03 01:18:10 +03:00

gitlab-ci: add git variable to speed up clone

Set GIT_STATEGY to fetch, and GIT_DEPTH to 3.
This will speed up cloning for repos.

Signed-off-by: Joe Guo <joeg@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Gary Lockyer <gary@catalyst.net.nz>
This commit is contained in:
Joe Guo 2017-12-12 14:26:07 +13:00 committed by Andrew Bartlett
parent 75d2be7da5
commit 2532c0db0c

View File

@ -2,6 +2,10 @@
image: registry.gitlab.com/samba-team/samba:latest image: registry.gitlab.com/samba-team/samba:latest
variables:
GIT_STRATEGY: fetch
GIT_DEPTH: "3"
before_script: before_script:
- echo "Build starting (preparing swap)..." - echo "Build starting (preparing swap)..."
- if [ $(df -m / --output=avail | tail -n1) -gt 10240 ]; then - if [ $(df -m / --output=avail | tail -n1) -gt 10240 ]; then