From 76b9836e5203a38562efaf806c016b3748308670 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Thu, 8 Feb 2024 12:34:49 +0200 Subject: [PATCH] ci: Ignore GTK4 plugin when building with `--all-features` And run clippy also with default / no-default features. Part-of: --- .gitlab-ci.yml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index ab49c93d..e4b2250b 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -97,8 +97,8 @@ trigger: - cargo build --locked --color=always --workspace --all-targets - G_DEBUG=fatal_warnings cargo test --locked --color=always --workspace --all-targets - - cargo build --locked --color=always --workspace --all-targets --all-features - - G_DEBUG=fatal_warnings cargo test --locked --color=always --workspace --all-targets --all-features + - cargo build --locked --color=always --workspace --all-targets --all-features --exclude gst-plugin-gtk4 + - G_DEBUG=fatal_warnings cargo test --locked --color=always --workspace --all-targets --all-features --exclude gst-plugin-gtk4 - cargo build --locked --color=always --workspace --all-targets --no-default-features - G_DEBUG=fatal_warnings cargo test --locked --color=always --workspace --all-targets --no-default-features @@ -326,7 +326,9 @@ clippy: # csound-sys only looks at /usr/lib and /usr/local top levels CSOUND_LIB_DIR: '/usr/lib/x86_64-linux-gnu/' script: - - cargo clippy --locked --color=always --all --all-features --all-targets -- -D warnings -A unknown-lints + - cargo clippy --locked --color=always --all --all-targets -- -D warnings -A unknown-lints + - cargo clippy --locked --color=always --all --all-features --all-targets --exclude gst-plugin-gtk4 -- -D warnings -A unknown-lints + - cargo clippy --locked --color=always --all --all-targets --no-default-features -- -D warnings -A unknown-lints deny: extends: .debian:12-stable @@ -367,7 +369,7 @@ coverage: # csound-sys only looks at /usr/lib and /usr/local top levels CSOUND_LIB_DIR: '/usr/lib/x86_64-linux-gnu/' script: - - cargo test --locked --color=always --all --all-features + - cargo test --locked --color=always --all --all-features --exclude gst-plugin-gtk4 # generate html report - grcov . --binary-path ./target/debug/ -s . -t html --branch --ignore-not-existing --ignore "*target*" --ignore "*/build.rs" -o ./coverage/ # generate cobertura report for gitlab integration