summaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
diff options
context:
space:
mode:
authorJoe Guo <joeg@catalyst.net.nz>2017-12-12 14:26:07 +1300
committerAndrew Bartlett <abartlet@samba.org>2018-03-27 23:03:13 +0200
commit2532c0db0ce2c189ab6fc96ab5c5e56ce5b17ecd (patch)
tree0fbefed41187c621fd913db1e620141592c6b21d /.gitlab-ci.yml
parent75d2be7da584a017beab493355cb88ce7dc61f4a (diff)
downloadsamba-2532c0db0ce2c189ab6fc96ab5c5e56ce5b17ecd.tar.gz
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>
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r--.gitlab-ci.yml4
1 files changed, 4 insertions, 0 deletions
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