Skip to content

Commit b24fb87

Browse files
committed
Add test.sh to allow to run test suite easily
Signed-off-by: Christian König <[email protected]>
1 parent a692b8c commit b24fb87

1 file changed

Lines changed: 22 additions & 0 deletions

File tree

test.sh

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
#!/bin/bash
2+
3+
set -e
4+
5+
# this script runs the tests and checks that also run as part of the`test.yml` github action workflow
6+
7+
cargo fmt --all -- --check
8+
cargo clippy -p librespot-core --no-default-features
9+
cargo clippy -p librespot-core
10+
11+
cargo hack clippy --each-feature -p librespot-discovery
12+
cargo hack clippy --each-feature -p librespot-playback
13+
cargo hack clippy --each-feature
14+
15+
cargo build --workspace --examples
16+
cargo test --workspace
17+
cargo hack --workspace --remove-dev-deps
18+
cargo check -p librespot-core --no-default-features
19+
cargo check -p librespot-core
20+
cargo hack check --each-feature -p librespot-discovery
21+
cargo hack check --each-feature -p librespot-playback
22+
cargo hack check --each-feature

0 commit comments

Comments
 (0)