From: Joe Guo Date: Tue, 12 Dec 2017 01:26:07 +0000 (+1300) Subject: gitlab-ci: add git variable to speed up clone X-Git-Tag: talloc-2.1.13~225 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=2532c0db0ce2c189ab6fc96ab5c5e56ce5b17ecd;p=thirdparty%2Fsamba.git 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 Reviewed-by: Andrew Bartlett Reviewed-by: Gary Lockyer --- diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index ef1cddad45b..c6739a5db34 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -2,6 +2,10 @@ image: registry.gitlab.com/samba-team/samba:latest +variables: + GIT_STRATEGY: fetch + GIT_DEPTH: "3" + before_script: - echo "Build starting (preparing swap)..." - if [ $(df -m / --output=avail | tail -n1) -gt 10240 ]; then