forked from EmbarkStudios/puffin
-
Notifications
You must be signed in to change notification settings - Fork 1
/
check.sh
executable file
·20 lines (15 loc) · 847 Bytes
/
check.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/bash
set -eux
# Checks all tests, lints etc.
# Basically does what the CI does.
export RUSTDOCFLAGS="-D warnings" # https://github.com/emilk/egui/pull/1454
cargo check --quiet --workspace --all-targets
cargo test --quiet --workspace --doc
cargo check --quiet --workspace --all-targets --all-features
cargo check --quiet -p puffin_viewer --lib --target wasm32-unknown-unknown --all-features
cargo clippy --quiet --workspace --all-targets --all-features -- -D warnings -W clippy::all
cargo test --quiet --workspace --all-targets --all-features
cargo fmt --all -- --check
cargo doc --quiet -p puffin -p puffin_egui -p puffin_http -p puffin_viewer --lib --no-deps --all-features
(cd puffin && cargo check --quiet --no-default-features --features "zstd")
(cd puffin && cargo check --quiet --no-default-features --features "serialization")