forked from librespot-org/librespot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
test.sh
executable file
·31 lines (24 loc) · 914 Bytes
/
test.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#!/bin/sh
set -e
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
# 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 build --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