From b24fb871aeff0925a2c912027798a6d6bdf47ac9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20K=C3=B6nig?= Date: Sun, 31 Mar 2024 14:27:37 +0000 Subject: [PATCH] Add test.sh to allow to run test suite easily MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Christian König --- test.sh | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100755 test.sh diff --git a/test.sh b/test.sh new file mode 100755 index 00000000..a3a0cbd5 --- /dev/null +++ b/test.sh @@ -0,0 +1,22 @@ +#!/bin/bash + +set -e + +# this script runs the tests and checks that also run as part of the`test.yml` github action workflow + +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 hack --workspace --remove-dev-deps +cargo check -p librespot-core --no-default-features +cargo check -p librespot-core +cargo hack check --each-feature -p librespot-discovery +cargo hack check --each-feature -p librespot-playback +cargo hack check --each-feature