From 946fa21966698c456d19de8a21afacce4d2ddf87 Mon Sep 17 00:00:00 2001 From: Daniel Stone Date: Thu, 6 Sep 2018 11:01:17 +0100 Subject: [PATCH] CI: Capture test logs as GitLab artifacts MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit GitLab CI already captures all the stdout/stderr output from the build process as the log. However, some other important information is hidden in other log files. Taken from Wayland, capture logs from the configuration process as well as from every check. Signed-off-by: Daniel Stone Cc: Rodrigo Vivi Cc: Lucas De Marchi Cc: Eric Engeström Cc: Daniel Vetter Acked-by: Daniel Vetter Acked-by: Eric Engestrom [Emil: use wildcard to match the artefacts] Reviewed-by: Emil Velikov --- .gitlab-ci.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 1dc434a5..fe9b47dd 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,3 +1,15 @@ +.artifacts-meson: &artifacts-meson + when: always + paths: + - _build/meson-logs + +.artifacts-autotools: &artifacts-autotools + when: always + paths: + - _build/*.log + - _build/*/*.log + - _build/*/*/*.log + .meson-build: &meson-build - meson _build -D amdgpu=true @@ -58,6 +70,7 @@ latest-meson: latest-autotools: stage: build image: base/archlinux:latest + artifacts: *artifacts-autotools before_script: - pacman -Syu --noconfirm --needed base-devel @@ -73,6 +86,7 @@ latest-autotools: oldest-meson: stage: build image: debian:stable + artifacts: *artifacts-meson before_script: - printf > /etc/dpkg/dpkg.cfg.d/99-exclude-cruft "%s\n" 'path-exclude=/usr/share/doc/*' @@ -109,6 +123,7 @@ oldest-meson: oldest-autotools: stage: build image: debian:stable + artifacts: *artifacts-autotools before_script: - printf > /etc/dpkg/dpkg.cfg.d/99-exclude-cruft "%s\n" 'path-exclude=/usr/share/doc/*' -- 2.11.0