From f9c15845a196c37d7b66468493968febc89a5bd2 Mon Sep 17 00:00:00 2001 From: Dorota Czaplejewicz Date: Wed, 8 Dec 2021 18:57:56 +0000 Subject: [PATCH 1/3] ci: Use cached artifacts in the test gitlab changed how it interprets the "needs" directive, which caused cargo to recompile. Using cached _build directory saves about 2 minutes. --- .gitlab-ci.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 8ee01735..83326b92 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -78,7 +78,8 @@ test_lintian: test: stage: test needs: - - build_meson + - job: build_meson + artifacts: true script: - apt-get -y build-dep . - apt-get -y install clang-tidy From b8fece97d9de39f2f813b10d3ffc4ce1ee70bbc9 Mon Sep 17 00:00:00 2001 From: Dorota Czaplejewicz Date: Wed, 8 Dec 2021 19:01:57 +0000 Subject: [PATCH 2/3] ci: Move release test to the start --- .gitlab-ci.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 83326b92..6f5611b2 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -91,6 +91,7 @@ test: check_release: stage: test + needs: [] only: refs: - master From e380179144cbf523d047e392651b434ebb9f5792 Mon Sep 17 00:00:00 2001 From: Dorota Czaplejewicz Date: Wed, 8 Dec 2021 19:20:21 +0000 Subject: [PATCH 3/3] ci: Start lintian test right after deb build The arm64 build often takes a longer time than the rest, so there's no reason to wait for it in the default staged configuration. --- .gitlab-ci.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 6f5611b2..cb6c1ad0 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -66,8 +66,9 @@ build_deb:arm64: test_lintian: stage: test - dependencies: - - build_deb + needs: + - job: build_deb + artifacts: true script: - apt-get -y install lintian - lintian *.deb