CI: Capture test logs as GitLab artifacts
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 <daniels@collabora.com> Cc: Rodrigo Vivi <rodrigo.vivi@gmail.com> Cc: Lucas De Marchi <lucas.de.marchi@gmail.com> Cc: Eric Engeström <eric.engestrom@intel.com> Cc: Daniel Vetter <daniel.vetter@ffwll.ch> Acked-by: Daniel Vetter <daniel.vetter@ffwll.ch> Acked-by: Eric Engestrom <eric.engestrom@intel.com> [Emil: use wildcard to match the artefacts] Reviewed-by: Emil Velikov <emil.velikov@collabora.com>main
parent
8d44918a7d
commit
946fa21966
|
@ -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: &meson-build
|
||||||
- meson _build
|
- meson _build
|
||||||
-D amdgpu=true
|
-D amdgpu=true
|
||||||
|
@ -58,6 +70,7 @@ latest-meson:
|
||||||
latest-autotools:
|
latest-autotools:
|
||||||
stage: build
|
stage: build
|
||||||
image: base/archlinux:latest
|
image: base/archlinux:latest
|
||||||
|
artifacts: *artifacts-autotools
|
||||||
before_script:
|
before_script:
|
||||||
- pacman -Syu --noconfirm --needed
|
- pacman -Syu --noconfirm --needed
|
||||||
base-devel
|
base-devel
|
||||||
|
@ -73,6 +86,7 @@ latest-autotools:
|
||||||
oldest-meson:
|
oldest-meson:
|
||||||
stage: build
|
stage: build
|
||||||
image: debian:stable
|
image: debian:stable
|
||||||
|
artifacts: *artifacts-meson
|
||||||
before_script:
|
before_script:
|
||||||
- printf > /etc/dpkg/dpkg.cfg.d/99-exclude-cruft "%s\n"
|
- printf > /etc/dpkg/dpkg.cfg.d/99-exclude-cruft "%s\n"
|
||||||
'path-exclude=/usr/share/doc/*'
|
'path-exclude=/usr/share/doc/*'
|
||||||
|
@ -109,6 +123,7 @@ oldest-meson:
|
||||||
oldest-autotools:
|
oldest-autotools:
|
||||||
stage: build
|
stage: build
|
||||||
image: debian:stable
|
image: debian:stable
|
||||||
|
artifacts: *artifacts-autotools
|
||||||
before_script:
|
before_script:
|
||||||
- printf > /etc/dpkg/dpkg.cfg.d/99-exclude-cruft "%s\n"
|
- printf > /etc/dpkg/dpkg.cfg.d/99-exclude-cruft "%s\n"
|
||||||
'path-exclude=/usr/share/doc/*'
|
'path-exclude=/usr/share/doc/*'
|
||||||
|
|
Loading…
Reference in New Issue