[librsvg: 41/53] Publish artifacts from cargo_test build step




commit 85f8104f4e8c99dcbbfd8cd3c41860c34746efb9
Author: Sven Neumann <sven svenfoo org>
Date:   Thu Oct 22 16:24:32 2020 +0200

    Publish artifacts from cargo_test build step

 .gitlab-ci.yml | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index cf000187..c43f6784 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -75,7 +75,6 @@ fmt:
   extends: .common
   needs:
     - job: check
-      artifacts: false
   script:
     - sudo -E cargo fmt --all -- --check
 
@@ -84,7 +83,6 @@ clippy:
   extends: .common
   needs:
     - job: check
-      artifacts: false
   script:
     - cargo clippy --version
     - sudo CARGO_HOME=$CARGO_HOME cargo clippy --workspace
@@ -97,7 +95,11 @@ cargo_test:
     - .recreate_cache
   needs:
     - job: check
-      artifacts: false
+  artifacts:
+    when: 'on_failure'
+    paths:
+      - _build/tests/output
+    expire_in: 1 day
   variables:
     OUT_DIR: "${CI_PROJECT_DIR}/tests/output"
   script:
@@ -109,7 +111,6 @@ cargo_test:
     - .common
   needs:
     - job: cargo_test
-      artifacts: false
   script:
     - mkdir -p _build
     - cd _build


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