mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-05-05 00:38:07 +02:00
CI: add testlog.txt as build artifacts
That way we will be able to check the logs in the case of failure.
(cherry picked from commit 0d4c8a235a)
This commit is contained in:
parent
763a58ebec
commit
b6e2533f82
3 changed files with 26 additions and 10 deletions
|
|
@ -60,11 +60,11 @@ variables:
|
|||
#
|
||||
# This is done by running `ci-fairy generate-template` and possibly bumping
|
||||
# ".default_tag".
|
||||
ALPINE_TAG: 'tag-961e70a41177'
|
||||
CENTOS_TAG: 'tag-fe6805b2c8f4'
|
||||
DEBIAN_TAG: 'tag-806721d9d354'
|
||||
FEDORA_TAG: 'tag-fe6805b2c8f4'
|
||||
UBUNTU_TAG: 'tag-806721d9d354'
|
||||
ALPINE_TAG: 'tag-2e18b2a8fda8'
|
||||
CENTOS_TAG: 'tag-89bbec6d4336'
|
||||
DEBIAN_TAG: 'tag-76951a042848'
|
||||
FEDORA_TAG: 'tag-89bbec6d4336'
|
||||
UBUNTU_TAG: 'tag-76951a042848'
|
||||
|
||||
ALPINE_EXEC: 'bash .gitlab-ci/alpine-install.sh'
|
||||
CENTOS_EXEC: 'bash .gitlab-ci/fedora-install.sh'
|
||||
|
|
@ -83,6 +83,7 @@ variables:
|
|||
- NetworkManager-1*.tar.xz
|
||||
- NetworkManager-1*.src.rpm
|
||||
- nm-test.log
|
||||
- testlog.txt
|
||||
|
||||
.nm_artifacts_debug:
|
||||
artifacts:
|
||||
|
|
@ -90,6 +91,7 @@ variables:
|
|||
when: always
|
||||
paths:
|
||||
- nm-test.log
|
||||
- testlog.txt
|
||||
|
||||
#################################################################
|
||||
# #
|
||||
|
|
|
|||
|
|
@ -88,6 +88,7 @@ variables:
|
|||
- NetworkManager-1*.tar.xz
|
||||
- NetworkManager-1*.src.rpm
|
||||
- nm-test.log
|
||||
- testlog.txt
|
||||
|
||||
.nm_artifacts_debug:
|
||||
artifacts:
|
||||
|
|
@ -95,6 +96,7 @@ variables:
|
|||
when: always
|
||||
paths:
|
||||
- nm-test.log
|
||||
- testlog.txt
|
||||
|
||||
#################################################################
|
||||
# #
|
||||
|
|
|
|||
|
|
@ -106,22 +106,34 @@ check_run_clean() {
|
|||
return 0
|
||||
}
|
||||
|
||||
die_with_testlog() {
|
||||
mv ./build/meson-logs/testlog.txt ./testlog.txt
|
||||
exit 1
|
||||
}
|
||||
|
||||
if check_run_clean meson+gcc+docs+valgrind ; then
|
||||
BUILD_TYPE=meson CC=gcc WITH_DOCS=1 WITH_VALGRIND=1 contrib/scripts/nm-ci-run.sh
|
||||
BUILD_TYPE=meson CC=gcc WITH_DOCS=1 WITH_VALGRIND=1 contrib/scripts/nm-ci-run.sh || die_with_testlog
|
||||
mv INST/share/gtk-doc/html "$ARTIFACT_DIR/docs-html"
|
||||
fi
|
||||
|
||||
check_run_clean meson+clang && BUILD_TYPE=meson CC=clang WITH_DOCS=0 contrib/scripts/nm-ci-run.sh
|
||||
check_run_clean rpm+meson && test $IS_FEDORA = 1 && ./contrib/fedora/rpm/build_clean.sh -g -w crypto_gnutls -w debug -w iwd -w test -w meson
|
||||
if check_run_clean meson+clang; then
|
||||
BUILD_TYPE=meson CC=clang WITH_DOCS=0 contrib/scripts/nm-ci-run.sh || die_with_testlog
|
||||
fi
|
||||
|
||||
if check_run_clean rpm+meson; then
|
||||
test $IS_FEDORA = 1 && ./contrib/fedora/rpm/build_clean.sh -g -w crypto_gnutls -w debug -w iwd -w test -w meson || die_with_testlog
|
||||
fi
|
||||
|
||||
if check_run_clean tarball && [ "$NM_BUILD_TARBALL" = 1 ]; then
|
||||
SIGN_SOURCE=0 ./contrib/fedora/rpm/build_clean.sh -r
|
||||
SIGN_SOURCE=0 ./contrib/fedora/rpm/build_clean.sh -r || die_with_testlog
|
||||
mv ./build/meson-dist/NetworkManager-1*.tar.xz "$ARTIFACT_DIR/"
|
||||
mv ./contrib/fedora/rpm/latest/SRPMS/NetworkManager-1*.src.rpm "$ARTIFACT_DIR/"
|
||||
do_clean
|
||||
fi
|
||||
|
||||
check_run_clean tarball+meson && BUILD_TYPE=meson CC=gcc WITH_DOCS=1 CONFIGURE_ONLY=1 contrib/scripts/nm-ci-run.sh
|
||||
if check_run_clean tarball+meson; then
|
||||
BUILD_TYPE=meson CC=gcc WITH_DOCS=1 CONFIGURE_ONLY=1 contrib/scripts/nm-ci-run.sh || die_with_testlog
|
||||
fi
|
||||
|
||||
###############################################################################
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue