aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorMichael Albinus2021-03-27 11:43:15 +0100
committerMichael Albinus2021-03-27 11:43:15 +0100
commitd6344b2e9a1edb384770ceba757779dca49158d2 (patch)
treee39ed7de5abbc0b37e251dcb6072a6a59f461063 /test
parenta25a5a68b44888c2c7b581250e54a0c9820b5975 (diff)
downloademacs-d6344b2e9a1edb384770ceba757779dca49158d2.tar.gz
emacs-d6344b2e9a1edb384770ceba757779dca49158d2.zip
Keep *.log files on emba
* test/infra/gitlab-ci.yml (.test-template): New template. (test-fast-inotify, test-lisp-inotify, test-lisp-net-inotify) (test-filenotify-gio, test-gnustep, test-all-inotify): Use it.
Diffstat (limited to 'test')
-rw-r--r--test/infra/Dockerfile.emba3
-rw-r--r--test/infra/gitlab-ci.yml18
2 files changed, 14 insertions, 7 deletions
diff --git a/test/infra/Dockerfile.emba b/test/infra/Dockerfile.emba
index cde657aada6..30a58971340 100644
--- a/test/infra/Dockerfile.emba
+++ b/test/infra/Dockerfile.emba
@@ -47,7 +47,8 @@ RUN make -j4
47FROM emacs-base as emacs-filenotify-gio 47FROM emacs-base as emacs-filenotify-gio
48 48
49RUN apt-get update && \ 49RUN apt-get update && \
50 apt-get install -y --no-install-recommends -o=Dpkg::Use-Pty=0 libglib2.0-dev libglib2.0-bin libglib2.0-0 \ 50 apt-get install -y --no-install-recommends -o=Dpkg::Use-Pty=0 \
51 libglib2.0-dev libglib2.0-bin libglib2.0-0 \
51 && rm -rf /var/lib/apt/lists/* 52 && rm -rf /var/lib/apt/lists/*
52 53
53COPY . /checkout 54COPY . /checkout
diff --git a/test/infra/gitlab-ci.yml b/test/infra/gitlab-ci.yml
index 5a0ab54e4b9..d91c3a411ec 100644
--- a/test/infra/gitlab-ci.yml
+++ b/test/infra/gitlab-ci.yml
@@ -133,6 +133,12 @@ default:
133 - docker build --pull --target ${target} -t ${CI_REGISTRY_IMAGE}:${target}-${BUILD_TAG} -f test/infra/Dockerfile.emba . 133 - docker build --pull --target ${target} -t ${CI_REGISTRY_IMAGE}:${target}-${BUILD_TAG} -f test/infra/Dockerfile.emba .
134 - docker push ${CI_REGISTRY_IMAGE}:${target}-${BUILD_TAG} 134 - docker push ${CI_REGISTRY_IMAGE}:${target}-${BUILD_TAG}
135 135
136.test-template:
137 artifacts:
138 expire_in: 1 week
139 paths:
140 - "test/**/*.log"
141
136.gnustep-template: 142.gnustep-template:
137 rules: 143 rules:
138 - if: '$CI_PIPELINE_SOURCE == "web"' 144 - if: '$CI_PIPELINE_SOURCE == "web"'
@@ -185,7 +191,7 @@ build-image-inotify:
185 191
186test-fast-inotify: 192test-fast-inotify:
187 stage: fast 193 stage: fast
188 extends: [.job-template] 194 extends: [.job-template, .test-template]
189 variables: 195 variables:
190 target: emacs-inotify 196 target: emacs-inotify
191 make_params: "-C test check" 197 make_params: "-C test check"
@@ -204,14 +210,14 @@ build-image-gnustep:
204 210
205test-lisp-inotify: 211test-lisp-inotify:
206 stage: normal 212 stage: normal
207 extends: [.job-template] 213 extends: [.job-template, .test-template]
208 variables: 214 variables:
209 target: emacs-inotify 215 target: emacs-inotify
210 make_params: "-C test check-lisp" 216 make_params: "-C test check-lisp"
211 217
212test-lisp-net-inotify: 218test-lisp-net-inotify:
213 stage: normal 219 stage: normal
214 extends: [.job-template] 220 extends: [.job-template, .test-template]
215 variables: 221 variables:
216 target: emacs-inotify 222 target: emacs-inotify
217 make_params: "-C test check-lisp-net" 223 make_params: "-C test check-lisp-net"
@@ -219,7 +225,7 @@ test-lisp-net-inotify:
219test-filenotify-gio: 225test-filenotify-gio:
220 # This tests file monitor libraries gfilemonitor and gio. 226 # This tests file monitor libraries gfilemonitor and gio.
221 stage: platforms 227 stage: platforms
222 extends: [.job-template, .filenotify-gio-template] 228 extends: [.job-template, .test-template, .filenotify-gio-template]
223 variables: 229 variables:
224 target: emacs-filenotify-gio 230 target: emacs-filenotify-gio
225 make_params: "-k -C test autorevert-tests filenotify-tests" 231 make_params: "-k -C test autorevert-tests filenotify-tests"
@@ -227,7 +233,7 @@ test-filenotify-gio:
227test-gnustep: 233test-gnustep:
228 # This tests the GNUstep build process 234 # This tests the GNUstep build process
229 stage: platforms 235 stage: platforms
230 extends: [.job-template, .gnustep-template] 236 extends: [.job-template, .test-template, .gnustep-template]
231 variables: 237 variables:
232 target: emacs-gnustep 238 target: emacs-gnustep
233 make_params: install 239 make_params: install
@@ -235,7 +241,7 @@ test-gnustep:
235test-all-inotify: 241test-all-inotify:
236 # This tests also file monitor libraries inotify and inotifywatch. 242 # This tests also file monitor libraries inotify and inotifywatch.
237 stage: slow 243 stage: slow
238 extends: [.job-template] 244 extends: [.job-template, .test-template]
239 rules: 245 rules:
240 # note there's no "changes" section, so this always runs on a schedule 246 # note there's no "changes" section, so this always runs on a schedule
241 - if: '$CI_PIPELINE_SOURCE == "web"' 247 - if: '$CI_PIPELINE_SOURCE == "web"'