diff --git a/test.sh b/test.sh index d362a227..df0e6d3c 100755 --- a/test.sh +++ b/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 \ No newline at end of file + +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