mirror of
https://github.com/librespot-org/librespot.git
synced 2025-10-02 17:29:22 +02:00
ci: update test.sh to sync clippy and check commands
This commit is contained in:
parent
b870db2b16
commit
d073cb1997
1 changed files with 15 additions and 12 deletions
27
test.sh
27
test.sh
|
@ -6,7 +6,7 @@ clean() {
|
|||
# some shells will call EXIT after the INT signal
|
||||
# causing EXIT trap to be executed, so we trap EXIT after INT
|
||||
trap '' EXIT
|
||||
|
||||
|
||||
cargo clean
|
||||
}
|
||||
|
||||
|
@ -14,18 +14,21 @@ trap clean INT QUIT TERM EXIT
|
|||
|
||||
# this script runs the tests and checks that also run as part of the`test.yml` github action workflow
|
||||
cargo clean
|
||||
|
||||
cargo fmt --all -- --check
|
||||
cargo clippy -p librespot-core --no-default-features
|
||||
cargo clippy -p librespot-core
|
||||
|
||||
cargo hack clippy --each-feature -p librespot-discovery
|
||||
cargo hack clippy --each-feature -p librespot-playback
|
||||
cargo hack clippy --each-feature
|
||||
cargo hack clippy -p librespot-protocol --each-feature
|
||||
|
||||
cargo build --workspace --examples
|
||||
cargo hack clippy -p librespot --each-feature --exclude-all-features --include-features native-tls --exclude-features rustls-tls-native-roots,rustls-tls-webpki-roots
|
||||
cargo hack clippy -p librespot --each-feature --exclude-all-features --include-features rustls-tls-native-roots --exclude-features native-tls,rustls-tls-webpki-roots
|
||||
cargo hack clippy -p librespot --each-feature --exclude-all-features --include-features rustls-tls-webpki-roots --exclude-features native-tls,rustls-tls-native-roots
|
||||
|
||||
|
||||
cargo fetch --locked
|
||||
cargo build --frozen --workspace --examples
|
||||
cargo test --workspace
|
||||
cargo check -p librespot-core --no-default-features
|
||||
cargo check -p librespot-core
|
||||
cargo hack check --no-dev-deps --each-feature -p librespot-discovery
|
||||
cargo hack check --no-dev-deps --each-feature -p librespot-playback
|
||||
cargo hack check --no-dev-deps --each-feature
|
||||
|
||||
cargo hack check -p librespot-protocol --each-feature
|
||||
cargo hack check -p librespot --each-feature --exclude-all-features --include-features native-tls --exclude-features rustls-tls-native-roots,rustls-tls-webpki-roots
|
||||
cargo hack check -p librespot --each-feature --exclude-all-features --include-features rustls-tls-native-roots --exclude-features native-tls,rustls-tls-webpki-roots
|
||||
run: cargo build --frozen
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue