forked from phip1611/spectrum-analyzer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcheck-build.sh
executable file
·38 lines (31 loc) · 1.8 KB
/
check-build.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
32
33
34
35
36
37
38
set -e
set -x
echo "checks that this builds on std+no_std + that all tests run + that all features compile"
cargo build --all-targets
cargo build --all-targets --no-default-features --features "rustfft-complex"
cargo build --all-targets --no-default-features --features "microfft-complex"
cargo build --all-targets --no-default-features --features "microfft-real"
cargo test --all-targets
cargo test --all-targets --no-default-features --features "rustfft-complex"
cargo test --all-targets --no-default-features --features "microfft-complex"
cargo test --all-targets --no-default-features --features "microfft-real"
cargo fmt -- --check # (--check doesn't change the files)
cargo doc
cargo doc --no-default-features --features "rustfft-complex"
cargo doc --no-default-features --features "microfft-complex"
cargo doc --no-default-features --features "microfft-real"
cargo clippy --all-targets
cargo clippy --all-targets --no-default-features --features "rustfft-complex"
cargo clippy --all-targets --no-default-features --features "microfft-complex"
cargo clippy --all-targets --no-default-features --features "microfft-real"
# test no_std
rustup target add thumbv7em-none-eabihf
# nope, thats BS: this crate needs STD
# cargo check --target thumbv7em-none-eabihf --no-default-features --features "rustfft-complex"
cargo check --target thumbv7em-none-eabihf --no-default-features --features "microfft-complex"
cargo check --target thumbv7em-none-eabihf --no-default-features --features "microfft-real"
# run examples
cargo run --release --example mp3-samples
cargo run --release --example mp3-samples --no-default-features --features "rustfft-complex"
cargo run --release --example mp3-samples --no-default-features --features "microfft-complex"
cargo run --release --example mp3-samples --no-default-features --features "microfft-real"