Skip to content

Commit d073cb1

Browse files
committed
ci: update test.sh to sync clippy and check commands
1 parent b870db2 commit d073cb1

File tree

1 file changed

+15
-12
lines changed

1 file changed

+15
-12
lines changed

test.sh

Lines changed: 15 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -6,26 +6,29 @@ clean() {
66
# some shells will call EXIT after the INT signal
77
# causing EXIT trap to be executed, so we trap EXIT after INT
88
trap '' EXIT
9-
9+
1010
cargo clean
1111
}
1212

1313
trap clean INT QUIT TERM EXIT
1414

1515
# this script runs the tests and checks that also run as part of the`test.yml` github action workflow
1616
cargo clean
17+
1718
cargo fmt --all -- --check
18-
cargo clippy -p librespot-core --no-default-features
19-
cargo clippy -p librespot-core
2019

21-
cargo hack clippy --each-feature -p librespot-discovery
22-
cargo hack clippy --each-feature -p librespot-playback
23-
cargo hack clippy --each-feature
20+
cargo hack clippy -p librespot-protocol --each-feature
21+
22+
cargo hack clippy -p librespot --each-feature --exclude-all-features --include-features native-tls --exclude-features rustls-tls-native-roots,rustls-tls-webpki-roots
23+
cargo hack clippy -p librespot --each-feature --exclude-all-features --include-features rustls-tls-native-roots --exclude-features native-tls,rustls-tls-webpki-roots
24+
cargo hack clippy -p librespot --each-feature --exclude-all-features --include-features rustls-tls-webpki-roots --exclude-features native-tls,rustls-tls-native-roots
2425

25-
cargo build --workspace --examples
26+
27+
cargo fetch --locked
28+
cargo build --frozen --workspace --examples
2629
cargo test --workspace
27-
cargo check -p librespot-core --no-default-features
28-
cargo check -p librespot-core
29-
cargo hack check --no-dev-deps --each-feature -p librespot-discovery
30-
cargo hack check --no-dev-deps --each-feature -p librespot-playback
31-
cargo hack check --no-dev-deps --each-feature
30+
31+
cargo hack check -p librespot-protocol --each-feature
32+
cargo hack check -p librespot --each-feature --exclude-all-features --include-features native-tls --exclude-features rustls-tls-native-roots,rustls-tls-webpki-roots
33+
cargo hack check -p librespot --each-feature --exclude-all-features --include-features rustls-tls-native-roots --exclude-features native-tls,rustls-tls-webpki-roots
34+
run: cargo build --frozen

0 commit comments

Comments
 (0)