From af4a2ab7361371e02863672f57b7b1d88fa56b55 Mon Sep 17 00:00:00 2001 From: Hans-Christoph Steiner Date: Thu, 6 Aug 2020 15:44:37 +0200 Subject: [PATCH] gitlab-ci: speed up test runs that do not need git history GIT_DEPTH sets how many commits of history to clone in CI Jobs. gitlab.com defaults to 50 with a max of 1000. The metadata_v0 job is the only job that needs history, and it needs more than 50. So this sets the default to 1, then metadata_v0 to 1000. https://docs.gitlab.com/ee/ci/pipelines/settings.html#git-shallow-clone --- .gitlab-ci.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 40b87667..148885d2 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,6 +1,8 @@ variables: pip: pip3 --timeout 100 --retries 10 +# speed up git checkout phase + GIT_DEPTH: 1 test: @@ -22,6 +24,7 @@ test: metadata_v0: image: registry.gitlab.com/fdroid/ci-images-server:latest variables: + GIT_DEPTH: 1000 RELEASE_COMMIT_ID: 37f37ebd88e79ebe93239b72ed5503d5bde13f4b # 2.0a~ script: - git fetch https://gitlab.com/fdroid/fdroidserver.git $RELEASE_COMMIT_ID