diff options
author | Thomas Haller <thaller@redhat.com> | 2022-03-17 13:48:15 +0100 |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2022-03-21 17:19:47 +0100 |
commit | 569b9d864ff160de7be5b14f5f45d50963270144 (patch) | |
tree | 70f63523f76b88f6a9900220d58bf8ce02f577e0 /.gitlab-ci/ci.template | |
parent | bbd053bf8362f96244b3db55f37209e527322353 (diff) | |
download | NetworkManager-569b9d864ff160de7be5b14f5f45d50963270144.tar.gz |
gitlab-ci: archive log of test
Our test is long and verbose. The output gets truncated after
a few megabytes, but sometimes it's interesting to see what
happens afterwards. Redirect also to a file and archive it.
Diffstat (limited to '.gitlab-ci/ci.template')
-rw-r--r-- | .gitlab-ci/ci.template | 20 |
1 files changed, 18 insertions, 2 deletions
diff --git a/.gitlab-ci/ci.template b/.gitlab-ci/ci.template index 4629c7effe..d42d2d186f 100644 --- a/.gitlab-ci/ci.template +++ b/.gitlab-ci/ci.template @@ -52,11 +52,20 @@ variables: variables: NM_BUILD_TARBALL: 1 artifacts: - expire_in: 2 days + expire_in: 5 days + when: always paths: - docs-html - NetworkManager-1*.tar.xz - NetworkManager-1*.src.rpm + - nm-test.log + +.nm_artifacts_debug: + artifacts: + expire_in: 5 days + when: always + paths: + - nm-test.log .nm_artifacts_undo: variables: @@ -145,9 +154,12 @@ variables: stage: test script: - env - - .gitlab-ci/run-test.sh + - .gitlab-ci/run-test.sh 2>&1 | tee /tmp/nm-test.log + after_script: + - mv /tmp/nm-test.log . dependencies: [] + ################################################################# # # # test stage # @@ -164,6 +176,8 @@ t_{{distro.name}}:{{version}}: {% if distro.name == pages_build.name and version == pages_build.version %} - .nm_artifacts +{% else %} + - .nm_artifacts_debug {% endif %} variables: FDO_DISTRIBUTION_VERSION: '{{version}}' @@ -195,6 +209,7 @@ check-patch: stage: test script: - date '+%Y%m%d-%H%M%S'; NM_CHECKPATCH_FETCH_UPSTREAM=1 contrib/scripts/checkpatch-feature-branch.sh + after_script: allow_failure: true check-tree: @@ -207,6 +222,7 @@ check-tree: - date '+%Y%m%d-%H%M%S'; git ls-files -z -- 'po/*.po' | xargs -0 -n1 msgfmt -vc - date '+%Y%m%d-%H%M%S'; contrib/scripts/nm-code-format.sh -n - date '+%Y%m%d-%H%M%S'; ci-fairy generate-template && git diff --exit-code + after_script: pages: stage: deploy |