diff options
| author | Michael Albinus | 2024-08-11 16:05:00 +0200 |
|---|---|---|
| committer | Michael Albinus | 2024-08-11 16:05:00 +0200 |
| commit | a9336d6996b0942dccbf143442ac80d4b0e2bbfa (patch) | |
| tree | 6d57d9544012a177d1056d0f28422956a77370d5 | |
| parent | ca56dc2e71660cf501f417ab683590ba2e333661 (diff) | |
| download | emacs-a9336d6996b0942dccbf143442ac80d4b0e2bbfa.tar.gz emacs-a9336d6996b0942dccbf143442ac80d4b0e2bbfa.zip | |
Adapt emba cache settings
* test/infra/gitlab-ci.yml (.build-template, .test-template)
(.gnustep-template, .filenotify-gio-template, .eglot-template)
(.tree-sitter-template, .native-comp-template): Add job specific
cache settings.
| -rw-r--r-- | test/infra/gitlab-ci.yml | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/test/infra/gitlab-ci.yml b/test/infra/gitlab-ci.yml index e5e48b76ec2..8c0cf706a77 100644 --- a/test/infra/gitlab-ci.yml +++ b/test/infra/gitlab-ci.yml | |||
| @@ -101,6 +101,8 @@ default: | |||
| 101 | 101 | ||
| 102 | .build-template: | 102 | .build-template: |
| 103 | needs: [] | 103 | needs: [] |
| 104 | cache: | ||
| 105 | policy: push | ||
| 104 | rules: | 106 | rules: |
| 105 | - if: '$CI_PIPELINE_SOURCE == "web"' | 107 | - if: '$CI_PIPELINE_SOURCE == "web"' |
| 106 | when: always | 108 | when: always |
| @@ -131,6 +133,8 @@ default: | |||
| 131 | - docker push ${CI_REGISTRY_IMAGE}:${target}-${BUILD_TAG} | 133 | - docker push ${CI_REGISTRY_IMAGE}:${target}-${BUILD_TAG} |
| 132 | 134 | ||
| 133 | .test-template: | 135 | .test-template: |
| 136 | cache: | ||
| 137 | policy: pull | ||
| 134 | artifacts: | 138 | artifacts: |
| 135 | name: ${test_name} | 139 | name: ${test_name} |
| 136 | public: true | 140 | public: true |
| @@ -142,6 +146,8 @@ default: | |||
| 142 | junit: ${test_name}/${EMACS_TEST_JUNIT_REPORT} | 146 | junit: ${test_name}/${EMACS_TEST_JUNIT_REPORT} |
| 143 | 147 | ||
| 144 | .gnustep-template: | 148 | .gnustep-template: |
| 149 | cache: | ||
| 150 | key: gnustep-${CI_COMMIT_SHA} | ||
| 145 | rules: | 151 | rules: |
| 146 | - if: '$CI_PIPELINE_SOURCE == "web"' | 152 | - if: '$CI_PIPELINE_SOURCE == "web"' |
| 147 | - if: '$CI_PIPELINE_SOURCE == "schedule"' | 153 | - if: '$CI_PIPELINE_SOURCE == "schedule"' |
| @@ -154,6 +160,8 @@ default: | |||
| 154 | - test/infra/* | 160 | - test/infra/* |
| 155 | 161 | ||
| 156 | .filenotify-gio-template: | 162 | .filenotify-gio-template: |
| 163 | cache: | ||
| 164 | key: filenotify-gio-${CI_COMMIT_SHA} | ||
| 157 | rules: | 165 | rules: |
| 158 | - if: '$CI_PIPELINE_SOURCE == "web"' | 166 | - if: '$CI_PIPELINE_SOURCE == "web"' |
| 159 | # - if: '$CI_PIPELINE_SOURCE == "schedule"' | 167 | # - if: '$CI_PIPELINE_SOURCE == "schedule"' |
| @@ -168,6 +176,8 @@ default: | |||
| 168 | - test/lisp/filenotify-tests.el | 176 | - test/lisp/filenotify-tests.el |
| 169 | 177 | ||
| 170 | .eglot-template: | 178 | .eglot-template: |
| 179 | cache: | ||
| 180 | key: eglot-${CI_COMMIT_SHA} | ||
| 171 | rules: | 181 | rules: |
| 172 | - if: '$CI_PIPELINE_SOURCE == "web"' | 182 | - if: '$CI_PIPELINE_SOURCE == "web"' |
| 173 | - if: '$CI_PIPELINE_SOURCE == "schedule"' | 183 | - if: '$CI_PIPELINE_SOURCE == "schedule"' |
| @@ -178,6 +188,8 @@ default: | |||
| 178 | - test/lisp/progmodes/eglot-tests.el | 188 | - test/lisp/progmodes/eglot-tests.el |
| 179 | 189 | ||
| 180 | .tree-sitter-template: | 190 | .tree-sitter-template: |
| 191 | cache: | ||
| 192 | key: tree-sitter-${CI_COMMIT_SHA} | ||
| 181 | rules: | 193 | rules: |
| 182 | - if: '$CI_PIPELINE_SOURCE == "web"' | 194 | - if: '$CI_PIPELINE_SOURCE == "web"' |
| 183 | - if: '$CI_PIPELINE_SOURCE == "schedule"' | 195 | - if: '$CI_PIPELINE_SOURCE == "schedule"' |
| @@ -198,6 +210,8 @@ default: | |||
| 198 | - test/src/treesit-tests.el | 210 | - test/src/treesit-tests.el |
| 199 | 211 | ||
| 200 | .native-comp-template: | 212 | .native-comp-template: |
| 213 | cache: | ||
| 214 | key: native-comp-${CI_COMMIT_SHA} | ||
| 201 | rules: | 215 | rules: |
| 202 | - if: '$CI_PIPELINE_SOURCE == "web"' | 216 | - if: '$CI_PIPELINE_SOURCE == "web"' |
| 203 | - if: '$CI_PIPELINE_SOURCE == "schedule"' | 217 | - if: '$CI_PIPELINE_SOURCE == "schedule"' |