2024-09-13 05:41:40 +00:00
|
|
|
#!/bin/sh
|
2024-03-31 14:27:37 +00:00
|
|
|
|
|
|
|
set -e
|
|
|
|
|
2024-12-14 21:29:55 +00:00
|
|
|
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
|
|
|
|
}
|
|
|
|
|
|
|
|
trap clean INT QUIT TERM EXIT
|
|
|
|
|
2024-03-31 14:27:37 +00:00
|
|
|
# this script runs the tests and checks that also run as part of the`test.yml` github action workflow
|
2024-08-29 20:28:53 +00:00
|
|
|
cargo clean
|
2024-03-31 14:27:37 +00:00
|
|
|
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 build --workspace --examples
|
|
|
|
cargo test --workspace
|
|
|
|
cargo check -p librespot-core --no-default-features
|
|
|
|
cargo check -p librespot-core
|
2024-03-31 14:51:13 +00:00
|
|
|
cargo hack check --no-dev-deps --each-feature -p librespot-discovery
|
|
|
|
cargo hack check --no-dev-deps --each-feature -p librespot-playback
|
2024-12-14 21:29:55 +00:00
|
|
|
cargo hack check --no-dev-deps --each-feature
|