.gitlab-ci.d: Make separate collapsible log sections for build and test
authorPeter Maydell <peter.maydell@linaro.org>
Wed, 18 Sep 2024 12:54:49 +0000 (13:54 +0100)
committerThomas Huth <thuth@redhat.com>
Wed, 25 Sep 2024 07:42:06 +0000 (09:42 +0200)
commitdc05b2628e3913e668590ba66d9c618382d351ae
tree3e95f67c9033bc45311055141209b943c6f413d8
parent1cde10ef0196497941cd481760d4ec544c37d66b
.gitlab-ci.d: Make separate collapsible log sections for build and test

GitLab lets a CI job create its own collapsible log sections by
emitting special escape codes, as documented here:

https://docs.gitlab.com/ee/ci/yaml/script.html#expand-and-collapse-job-log-sections

Use these to make "configure", "build" and "test" separate
collapsible stages.

As recommended by the GitLab docs, we use some shell which is
sourced in the CI job to define functions to emit the magic
lines that start and end sections, to hide the ugliness of
the printf lines from the log.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-ID: <20240918125449.3125571-3-peter.maydell@linaro.org>
Signed-off-by: Thomas Huth <thuth@redhat.com>
.gitlab-ci.d/buildtest-template.yml
.gitlab-ci.d/buildtest.yml
.gitlab-ci.d/crossbuild-template.yml
scripts/ci/gitlab-ci-section [new file with mode: 0644]