[librsvg: 1/2] Run 'cargo test' for the Rust gdk-pixbuf-loader




commit 79e2de31ba590618d2e99fe9df5945963b7b706b
Author: Federico Mena Quintero <federico gnome org>
Date:   Tue Sep 20 17:47:40 2022 -0500

    Run 'cargo test' for the Rust gdk-pixbuf-loader
    
    The binary is not installed yet via autotools, but let's run a build/test
    of the new gdk-pixbuf-loader in the CI to ensure it keeps working.
    
    Part-of: <https://gitlab.gnome.org/GNOME/librsvg/-/merge_requests/749>

 .gitlab-ci.yml | 20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index ef0a6dc7e..e43eaf5fb 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -59,6 +59,26 @@ cargo_test:
   script:
     - cargo test -- --skip loading_crash --skip reference --skip render_crash
 
+test_rust_gdk_pixbuf_loader:
+  stage: check
+  extends:
+    - '.container.opensuse@x86_64.stable'
+    - '.fdo.distribution-image@opensuse'
+    # Tests require extra crates, hence cache is pushed
+    - '.cache_push'
+  needs:
+    - job: check
+  artifacts:
+    when: 'on_failure'
+    paths:
+      - _build/tests/output
+    expire_in: 1 day
+  variables:
+    OUT_DIR: "${CI_PROJECT_DIR}/tests/output"
+  script:
+    - cd gdk-pixbuf-loader
+    - cargo test
+
 .build-rsvg-no-docs:
   extends: '.cache'
   stage: build


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