diff options
| author | Michael Albinus | 2024-10-13 15:40:42 +0200 |
|---|---|---|
| committer | Michael Albinus | 2024-10-13 15:40:42 +0200 |
| commit | 19f929aaa33a3bd8cc02a7fdfa0d8dc4c2fa8fc3 (patch) | |
| tree | 75950c670f9a4cffe51d05c6bb33ee8df631b675 | |
| parent | 29bf0a8b31baf4ece85fb8f0698525547b2fe70e (diff) | |
| download | emacs-19f929aaa33a3bd8cc02a7fdfa0d8dc4c2fa8fc3.tar.gz emacs-19f929aaa33a3bd8cc02a7fdfa0d8dc4c2fa8fc3.zip | |
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.
| -rw-r--r-- | test/infra/gitlab-ci.yml | 9 |
1 files changed, 8 insertions, 1 deletions
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: | |||
| 42 | - when: always | 42 | - when: always |
| 43 | 43 | ||
| 44 | variables: | 44 | variables: |
| 45 | GIT_DEPTH: 0 | ||
| 45 | GIT_STRATEGY: fetch | 46 | GIT_STRATEGY: fetch |
| 46 | EMACS_EMBA_CI: 1 | 47 | EMACS_EMBA_CI: 1 |
| 47 | EMACS_TEST_JUNIT_REPORT: junit-test-report.xml | 48 | EMACS_TEST_JUNIT_REPORT: junit-test-report.xml |
| @@ -75,7 +76,6 @@ default: | |||
| 75 | cache: | 76 | cache: |
| 76 | key: ${CI_COMMIT_SHA} | 77 | key: ${CI_COMMIT_SHA} |
| 77 | paths: [] | 78 | paths: [] |
| 78 | policy: pull-push | ||
| 79 | # These will be saved for followup builds. | 79 | # These will be saved for followup builds. |
| 80 | artifacts: | 80 | artifacts: |
| 81 | expire_in: 24 hrs | 81 | expire_in: 24 hrs |
| @@ -98,6 +98,9 @@ default: | |||
| 98 | - find ${test_name} -type d -depth -exec rmdir {} + 2>/dev/null | 98 | - find ${test_name} -type d -depth -exec rmdir {} + 2>/dev/null |
| 99 | 99 | ||
| 100 | .build-template: | 100 | .build-template: |
| 101 | needs: [] | ||
| 102 | cache: | ||
| 103 | policy: push | ||
| 101 | rules: | 104 | rules: |
| 102 | - if: '$CI_PIPELINE_SOURCE == "web"' | 105 | - if: '$CI_PIPELINE_SOURCE == "web"' |
| 103 | when: always | 106 | when: always |
| @@ -128,6 +131,8 @@ default: | |||
| 128 | - docker push ${CI_REGISTRY_IMAGE}:${target}-${BUILD_TAG} | 131 | - docker push ${CI_REGISTRY_IMAGE}:${target}-${BUILD_TAG} |
| 129 | 132 | ||
| 130 | .test-template: | 133 | .test-template: |
| 134 | cache: | ||
| 135 | policy: pull | ||
| 131 | artifacts: | 136 | artifacts: |
| 132 | name: ${test_name} | 137 | name: ${test_name} |
| 133 | public: true | 138 | public: true |
| @@ -185,7 +190,9 @@ default: | |||
| 185 | - lisp/progmodes/csharp-mode.el | 190 | - lisp/progmodes/csharp-mode.el |
| 186 | - lisp/progmodes/js.el | 191 | - lisp/progmodes/js.el |
| 187 | - lisp/progmodes/python.el | 192 | - lisp/progmodes/python.el |
| 193 | - lisp/progmodes/sh-script.el | ||
| 188 | - lisp/textmodes/*-ts-mode.el | 194 | - lisp/textmodes/*-ts-mode.el |
| 195 | - lisp/textmodes/css-mode.el | ||
| 189 | - lisp/treesit.el | 196 | - lisp/treesit.el |
| 190 | - src/treesit.{h,c} | 197 | - src/treesit.{h,c} |
| 191 | - test/infra/* | 198 | - test/infra/* |