From b3e68f81055af2d31ea56ffef21f464755afcee2 Mon Sep 17 00:00:00 2001 From: Michael Albinus Date: Sun, 13 Oct 2024 15:40:42 +0200 Subject: [PATCH] Adapt gitlab-ci.yml * test/infra/gitlab-ci.yml (variables): Set GIT_DEPTH: 0. (.job-template): Remove cache:policy. (.build-template): Add needs and cache:policy. (.test-template): Add cache:policy. (.tree-sitter-template): Add files in changes. (cherry picked from commit 19f929aaa33a3bd8cc02a7fdfa0d8dc4c2fa8fc3) --- test/infra/gitlab-ci.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/test/infra/gitlab-ci.yml b/test/infra/gitlab-ci.yml index de70e10870f..8292fb1b729 100644 --- a/test/infra/gitlab-ci.yml +++ b/test/infra/gitlab-ci.yml @@ -42,6 +42,7 @@ workflow: - when: always variables: + GIT_DEPTH: 0 GIT_STRATEGY: fetch EMACS_EMBA_CI: 1 EMACS_TEST_JUNIT_REPORT: junit-test-report.xml @@ -75,7 +76,6 @@ default: cache: key: ${CI_COMMIT_SHA} paths: [] - policy: pull-push # These will be saved for followup builds. artifacts: expire_in: 24 hrs @@ -98,6 +98,9 @@ default: - find ${test_name} -type d -depth -exec rmdir {} + 2>/dev/null .build-template: + needs: [] + cache: + policy: push rules: - if: '$CI_PIPELINE_SOURCE == "web"' when: always @@ -128,6 +131,8 @@ default: - docker push ${CI_REGISTRY_IMAGE}:${target}-${BUILD_TAG} .test-template: + cache: + policy: pull artifacts: name: ${test_name} public: true @@ -185,7 +190,9 @@ default: - lisp/progmodes/csharp-mode.el - lisp/progmodes/js.el - lisp/progmodes/python.el + - lisp/progmodes/sh-script.el - lisp/textmodes/*-ts-mode.el + - lisp/textmodes/css-mode.el - lisp/treesit.el - src/treesit.{h,c} - test/infra/* -- 2.39.5