mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-13 23:40:20 +01: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 commit0d4c8a235a) (cherry picked from commitb6e2533f82) (cherry picked from commitfc238062bd)
This commit is contained in:
parent
1c88e026f9
commit
e8532d4a41
3 changed files with 38 additions and 12 deletions
|
|
@ -57,11 +57,11 @@ variables:
|
|||
#
|
||||
# This is done by running `ci-fairy generate-template` and possibly bumping
|
||||
# ".default_tag".
|
||||
ALPINE_TAG: 'tag-cdd4a3546a4b'
|
||||
CENTOS_TAG: 'tag-260907d9c011'
|
||||
DEBIAN_TAG: 'tag-c3273baa03dd'
|
||||
FEDORA_TAG: 'tag-260907d9c011'
|
||||
UBUNTU_TAG: 'tag-c3273baa03dd'
|
||||
ALPINE_TAG: 'tag-fbaba7b068de'
|
||||
CENTOS_TAG: 'tag-f7b41f738336'
|
||||
DEBIAN_TAG: 'tag-525ae68e7e06'
|
||||
FEDORA_TAG: 'tag-f7b41f738336'
|
||||
UBUNTU_TAG: 'tag-525ae68e7e06'
|
||||
|
||||
ALPINE_EXEC: 'bash .gitlab-ci/alpine-install.sh'
|
||||
CENTOS_EXEC: 'bash .gitlab-ci/fedora-install.sh'
|
||||
|
|
@ -80,6 +80,7 @@ variables:
|
|||
- NetworkManager-1*.tar.xz
|
||||
- NetworkManager-1*.src.rpm
|
||||
- nm-test.log
|
||||
- testlog.txt
|
||||
|
||||
.nm_artifacts_debug:
|
||||
artifacts:
|
||||
|
|
@ -87,6 +88,7 @@ variables:
|
|||
when: always
|
||||
paths:
|
||||
- nm-test.log
|
||||
- testlog.txt
|
||||
|
||||
#################################################################
|
||||
# #
|
||||
|
|
|
|||
|
|
@ -85,6 +85,7 @@ variables:
|
|||
- NetworkManager-1*.tar.xz
|
||||
- NetworkManager-1*.src.rpm
|
||||
- nm-test.log
|
||||
- testlog.txt
|
||||
|
||||
.nm_artifacts_debug:
|
||||
artifacts:
|
||||
|
|
@ -92,6 +93,7 @@ variables:
|
|||
when: always
|
||||
paths:
|
||||
- nm-test.log
|
||||
- testlog.txt
|
||||
|
||||
#################################################################
|
||||
# #
|
||||
|
|
|
|||
|
|
@ -108,20 +108,42 @@ check_run_clean() {
|
|||
return 0
|
||||
}
|
||||
|
||||
die_with_testlog() {
|
||||
mv ./build/meson-logs/testlog.txt ./testlog.txt
|
||||
exit 1
|
||||
}
|
||||
|
||||
if check_run_clean autotools+gcc+docs+valgrind ; then
|
||||
BUILD_TYPE=autotools CC=gcc WITH_DOCS=1 WITH_VALGRIND=1 contrib/scripts/nm-ci-run.sh
|
||||
BUILD_TYPE=autotools CC=gcc WITH_DOCS=1 WITH_VALGRIND=1 contrib/scripts/nm-ci-run.sh || die_with_testlog
|
||||
mv build/INST/share/gtk-doc/html "$ARTIFACT_DIR/docs-html"
|
||||
fi
|
||||
|
||||
check_run_clean meson+gcc+docs+valgrind && BUILD_TYPE=meson CC=gcc WITH_DOCS=1 WITH_VALGRIND=1 contrib/scripts/nm-ci-run.sh
|
||||
check_run_clean autotools+clang && BUILD_TYPE=autotools CC=clang WITH_DOCS=0 contrib/scripts/nm-ci-run.sh
|
||||
check_run_clean meson+clang && BUILD_TYPE=meson CC=clang WITH_DOCS=0 contrib/scripts/nm-ci-run.sh
|
||||
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 || die_with_testlog
|
||||
fi
|
||||
|
||||
check_run_clean rpm+autotools && test $IS_FEDORA = 1 -o $IS_CENTOS = 1 && ./contrib/fedora/rpm/build_clean.sh -g -w crypto_gnutls -w debug -w iwd -w test -W meson
|
||||
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 autotools+clang; then
|
||||
BUILD_TYPE=autotools CC=clang WITH_DOCS=0 contrib/scripts/nm-ci-run.sh || die_with_testlog
|
||||
fi
|
||||
|
||||
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+autotools; then
|
||||
if test $IS_FEDORA = 1 -o $IS_CENTOS = 1; then
|
||||
./contrib/fedora/rpm/build_clean.sh -g -w crypto_gnutls -w debug -w iwd -w test -W meson || die_with_testlog
|
||||
fi
|
||||
fi
|
||||
|
||||
if check_run_clean rpm+meson; then
|
||||
if test $IS_FEDORA = 1; then
|
||||
./contrib/fedora/rpm/build_clean.sh -g -w crypto_gnutls -w debug -w iwd -w test -w meson || die_with_testlog
|
||||
fi
|
||||
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 ./NetworkManager-1*.tar.xz "$ARTIFACT_DIR/"
|
||||
mv ./contrib/fedora/rpm/latest/SRPMS/NetworkManager-1*.src.rpm "$ARTIFACT_DIR/"
|
||||
do_clean
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue