gitlab-ci: add git variable to speed up clone
authorJoe Guo <joeg@catalyst.net.nz>
Tue, 12 Dec 2017 01:26:07 +0000 (14:26 +1300)
committerAndrew Bartlett <abartlet@samba.org>
Tue, 27 Mar 2018 21:03:13 +0000 (23:03 +0200)
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>
.gitlab-ci.yml

index ef1cddad45bc2fab7e3949c25695d1ebb671e2d7..c6739a5db34e6a8684c8dc75c3aaa2d91c5923b6 100644 (file)
@@ -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