[tracker-miners/sam/ci-save-logs-on-failure] ci: Upload test suite logs as a CI artifact



commit 47487248bc90ffb3ca0e04f1bb7a363b7ff697dc
Author: Sam Thursfield <sam afuera me uk>
Date:   Mon Mar 4 10:28:50 2019 +0100

    ci: Upload test suite logs as a CI artifact
    
    We sometimes see unreproducible test failures in CI. These are often
    hard to debug because they don't occur all the time, and may even be
    triggered by something that only happens on a specific CI runner.
    
    This corresponds with merge request tracker!71

 .gitlab-ci.yml | 5 +++++
 1 file changed, 5 insertions(+)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 8fbedb2c7..a63c6d7a1 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -28,3 +28,8 @@ test-fedora-latest:
       unset $(env|grep -o '^CI_[^=]*')
 
       su tracker -c 'cd build; LANG=en_US.UTF8 dbus-launch meson test --suite tracker-miners 
--print-errorlogs'
+
+  artifacts:
+    when: always
+    paths:
+    - build/meson-logs/testlog.txt


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]