From d3980521ef1019959a4a2bd31e2f82bb96906cbe Mon Sep 17 00:00:00 2001 From: Tomas Susanka Date: Thu, 23 May 2019 13:59:30 +0200 Subject: [PATCH] ci: use git fetch; remove submodule strategy from specific places --- .gitlab-ci.yml | 4 ++++ ci/core.yml | 6 ------ ci/legacy.yml | 2 -- ci/storage.yml | 2 -- 4 files changed, 4 insertions(+), 10 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 96441b85e..e55b1136a 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,4 +1,8 @@ variables: + # Using git fetch is faster. + # See https://docs.gitlab.com/ce/user/project/pipelines/settings.html#git-strategy + GIT_STRATEGY: "fetch" + # Init submodules. # See https://docs.gitlab.com/ee/ci/yaml/#git-submodule-strategy GIT_SUBMODULE_STRATEGY: "recursive" diff --git a/ci/core.yml b/ci/core.yml index 47b5f5baa..5e7b95ec3 100644 --- a/ci/core.yml +++ b/ci/core.yml @@ -39,8 +39,6 @@ build core unix frozen: test core unix unit: stage: test - variables: - GIT_SUBMODULE_STRATEGY: none # no need to fetch submodules dependencies: - build core unix frozen script: @@ -49,8 +47,6 @@ test core unix unit: test core unix device: stage: test - variables: - GIT_SUBMODULE_STRATEGY: none # no need to fetch submodules dependencies: - build core unix frozen script: @@ -59,8 +55,6 @@ test core unix device: test core unix monero: stage: test - variables: - GIT_SUBMODULE_STRATEGY: none # no need to fetch submodules dependencies: - build core unix frozen script: diff --git a/ci/legacy.yml b/ci/legacy.yml index 67f50fa3b..6822ad30d 100644 --- a/ci/legacy.yml +++ b/ci/legacy.yml @@ -47,8 +47,6 @@ build legacy emu: # TODO: aren't some tests from .travis.yml missing? test legacy emu: - variables: - GIT_SUBMODULE_STRATEGY: none # no need to fetch submodules stage: test dependencies: - build legacy emu diff --git a/ci/storage.yml b/ci/storage.yml index 6d6a93785..57b046c5b 100644 --- a/ci/storage.yml +++ b/ci/storage.yml @@ -1,8 +1,6 @@ image: registry.corp.sldev.cz/trezor/trezor-firmware/environment test storage: - variables: - GIT_SUBMODULE_STRATEGY: none # no need to fetch submodules stage: test dependencies: [] script: