[librsvg: 1/5] Run the full test suite for the coverage job




commit 4b039f0755077a4b5deef0a840b482ef722e19d7
Author: Federico Mena Quintero <federico gnome org>
Date:   Fri Feb 18 08:51:03 2022 -0600

    Run the full test suite for the coverage job
    
    We were only running "cargo test", which omits the long-running tests
    and the C API tests.

 .gitlab-ci.yml | 11 ++++++++---
 1 file changed, 8 insertions(+), 3 deletions(-)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 154e5ebc4..0fc03c109 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -251,6 +251,7 @@ coverage:
   extends:
     - '.container.opensuse@x86_64.nightly'
     - .fdo.distribution-image@opensuse
+    - .cache
   stage: unit test
   needs:
     - job: opensuse-container@x86_64.nightly
@@ -261,12 +262,16 @@ coverage:
     RUSTDOCFLAGS: "-Zinstrument-coverage"
     LLVM_PROFILE_FILE: "coverage-profiles/coverage-%p-%m.profraw"
   script:
-    - cargo +nightly test --no-fail-fast || true
+    - mkdir -p _build
+    - cd _build
+    - ../autogen.sh --enable-gtk-doc --enable-vala --enable-debug
+    - make
+    - make check
   after_script:
     - source ./ci/env.sh
     - mkdir -p public
-    - grcov coverage-profiles --binary-path ./target/debug/ --source-dir . --output-type cobertura --llvm 
--branch --ignore-not-existing --ignore "*cargo*" -o coverage.xml
-    - grcov coverage-profiles --binary-path ./target/debug/ --source-dir . --output-type html --llvm 
--branch --ignore-not-existing --ignore "build.rs" --output-path public/coverage
+    - grcov coverage-profiles --binary-path ./_build/target/debug/ --source-dir . --output-type cobertura 
--llvm --branch --ignore-not-existing --ignore "*cargo*" -o coverage.xml
+    - grcov coverage-profiles --binary-path ./_build/target/debug/ --source-dir . --output-type html --llvm 
--branch --ignore-not-existing --ignore "build.rs" --output-path public/coverage
     - grep -Eo 'line-rate="[^"]+"' coverage.xml | head -n 1 | grep -Eo '[0-9.]+' | awk '{ print "Coverage:", 
$1 * 100 }'
   coverage: '/Coverage: \d+\.\d+/'
   artifacts:


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