Skip to content

Commit

Permalink
.gitlab-ci.d: export meson testlog.txt as an artifact
Browse files Browse the repository at this point in the history
When running 'make check' we only get a summary of progress on the
console. Fortunately meson/ninja have saved the raw test output to a
logfile. Exposing this log will make it easier to debug failures that
happen in CI.

Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
Message-Id: <20220509124134.867431-3-berrange@redhat.com>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
  • Loading branch information
berrange authored and kevmw committed May 12, 2022
1 parent 5e781c7 commit 29a4937
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions .gitlab-ci.d/buildtest-template.yml
Expand Up @@ -26,7 +26,7 @@
make -j"$JOBS" $MAKE_CHECK_ARGS ;
fi

.native_test_job_template:
.common_test_job_template:
stage: test
image: $CI_REGISTRY_IMAGE/qemu/$IMAGE:latest
script:
Expand All @@ -37,8 +37,16 @@
# Avoid recompiling by hiding ninja with NINJA=":"
- make NINJA=":" $MAKE_CHECK_ARGS

.native_test_job_template:
extends: .common_test_job_template
artifacts:
name: "$CI_JOB_NAME-$CI_COMMIT_REF_SLUG"
expire_in: 7 days
paths:
- build/meson-logs/testlog.txt

.avocado_test_job_template:
extends: .native_test_job_template
extends: .common_test_job_template
cache:
key: "${CI_JOB_NAME}-cache"
paths:
Expand Down

0 comments on commit 29a4937

Please sign in to comment.