[Spice-devel] [spice-gtk v1 08/10] gitlab-ci: add artifacts for logs and tests
Victor Toso
victortoso at redhat.com
Fri Feb 8 18:32:50 UTC 2019
From: Victor Toso <me at victortoso.com>
Much better than playing around with shell. Logs should live for week
since the build and CI will try to always upload them.
This patch also adds the logs for tests from builds with autotools
Signed-off-by: Victor Toso <victortoso at redhat.com>
---
.gitlab-ci.yml | 20 ++++++++++++++++----
1 file changed, 16 insertions(+), 4 deletions(-)
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index aa67ed5..c68f9d7 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -18,6 +18,12 @@ variables:
mingw64-gstreamer1-plugins-base mingw64-gstreamer1-plugins-good
fedora-autotools:
+ artifacts:
+ paths:
+ - tests/*.log
+ when: always
+ expire_in: 1 week
+
before_script:
- dnf install -y $DEPS_COMMON $DEPS_FEDORA
- git clone ${CI_REPOSITORY_URL/spice-gtk/spice-protocol}
@@ -42,6 +48,12 @@ fedora-autotools:
- make check
fedora-meson:
+ artifacts:
+ paths:
+ - _build_*/meson-logs/*.txt
+ when: always
+ expire_in: 1 week
+
before_script:
- dnf install -y $DEPS_COMMON $DEPS_FEDORA
- git clone ${CI_REPOSITORY_URL/spice-gtk/spice-protocol}
@@ -49,13 +61,13 @@ fedora-meson:
- ninja -C _build_spice-protocol install
script:
- - meson _build_default || (cat _build_default/meson-logs/meson-log.txt && exit 1)
+ - meson _build_default
- ninja -C _build_default
- - ninja -C _build_default test || (cat _build_default/meson-logs/testlog.txt && exit 1)
+ - ninja -C _build_default test
- - meson _build_feat_disabled -Dauto_features=disabled || (cat _build_feat_disabled/meson-logs/meson-log.txt && exit 1)
+ - meson _build_feat_disabled -Dauto_features=disabled
- ninja -C _build_feat_disabled
- - ninja -C _build_feat_disabled test || (cat _build_feat_disabled/meson-logs/testlog.txt && exit 1)
+ - ninja -C _build_feat_disabled test
windows-autotools:
before_script:
--
2.19.0
More information about the Spice-devel
mailing list