|
2 | 2 |
|
3 | 3 | set -eo pipefail |
4 | 4 |
|
| 5 | +# Check formatting before anything else; it's a fast check. |
| 6 | +# |
| 7 | +cargo +nightly fmt --check --manifest-path ./host/Cargo.toml |
| 8 | +cargo +nightly fmt --check --manifest-path ./host-macros/Cargo.toml |
| 9 | + |
| 10 | +cargo clippy --manifest-path ./host/Cargo.toml --features central,gatt,peripheral,scan,security |
| 11 | + |
5 | 12 | if ! command -v cargo-batch &> /dev/null; then |
6 | 13 | mkdir -p $HOME/.cargo/bin |
7 | 14 | curl -L https://github.com/embassy-rs/cargo-batch/releases/download/batch-0.6.0/cargo-batch > $HOME/.cargo/bin/cargo-batch |
@@ -43,8 +50,8 @@ cargo batch \ |
43 | 50 | --- build --release --manifest-path examples/rp-pico-2-w/Cargo.toml --target thumbv8m.main-none-eabihf --features skip-cyw43-firmware |
44 | 51 | # --- build --release --manifest-path examples/apache-nimble/Cargo.toml --target thumbv7em-none-eabihf |
45 | 52 |
|
46 | | -cargo fmt --check --manifest-path ./host/Cargo.toml |
47 | | -cargo clippy --manifest-path ./host/Cargo.toml --features gatt,peripheral,central |
48 | | -cargo test --manifest-path ./host/Cargo.toml --lib -- --nocapture |
49 | | -cargo test --manifest-path ./host/Cargo.toml --no-run -- --nocapture |
50 | | -cargo test --manifest-path ./examples/tests/Cargo.toml --no-run -- --nocapture |
| 53 | +cargo test --manifest-path ./host/Cargo.toml --features central,gatt,peripheral,scan,security --lib -- --nocapture |
| 54 | + |
| 55 | +# Running tests requires some hardware, so we just check they compile. |
| 56 | +cargo test --manifest-path ./host/Cargo.toml --features central,gatt,peripheral,scan,security --no-run |
| 57 | +cargo test --manifest-path ./examples/tests/Cargo.toml --no-run |
0 commit comments