-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathci.sh
More file actions
executable file
·43 lines (32 loc) · 1.11 KB
/
ci.sh
File metadata and controls
executable file
·43 lines (32 loc) · 1.11 KB
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
39
40
41
42
43
#!/usr/bin/env bash
set -euo pipefail
root_dir="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
cd "$root_dir"
echo "==> Checking formatting"
cargo fmt \
-p styx-core-rs \
-p styx-capture \
-p styx-codec \
-p styx-libcamera \
-p styx \
-p styx-v4l2 \
-p styx-examples \
-- --check
echo "==> Checking file sizes"
"$root_dir/scripts/check-file-sizes.sh"
echo "==> Running clippy"
cargo clippy --workspace --all-targets -- -D warnings
echo "==> Running all-feature workspace check"
cargo check --workspace --all-targets --all-features
echo "==> Running all-feature clippy"
cargo clippy --workspace --all-targets --all-features -- -D warnings
echo "==> Checking release feature combinations"
bash "$root_dir/scripts/check-feature-combinations.sh"
echo "==> Checking duplicate dependency surface"
cargo tree -d --workspace --no-default-features
echo "==> Running tests"
cargo test --workspace
echo "==> Building example surface"
cargo check -p styx-examples --no-default-features --features "async,file-backend,netcam,codec-jpeg-decoder"
echo "==> Running perf smoke baseline"
"$root_dir/scripts/check-perf-smoke.sh"