]> git.eshelyaron.com Git - emacs.git/commitdiff
Adapt gitlab-ci.yml
authorMichael Albinus <michael.albinus@gmx.de>
Sun, 13 Oct 2024 13:40:42 +0000 (15:40 +0200)
committerEshel Yaron <me@eshelyaron.com>
Mon, 14 Oct 2024 17:43:51 +0000 (19:43 +0200)
* 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

index de70e10870fd5068fe8467f9206e3b5f9fc699a7..8292fb1b729937c7f09651f698aea4445226e011 100644 (file)
@@ -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/*