-
Notifications
You must be signed in to change notification settings - Fork 38
/
check.sh
executable file
·30 lines (23 loc) · 968 Bytes
/
check.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
#!/bin/bash
# Ensure formatting and clippy is done on nightly.
set -ex
# Change to our project home.
script_dir=$(dirname "${BASH_SOURCE[0]}")
cd "$script_dir"/..
# Make sure we error on warnings, and don't format in-place.
# Do the formatting and clippy for all our project workspaces.
cargo +nightly fmt -- --check
cargo +nightly clippy --no-default-features -- --deny warnings
cargo +nightly clippy --features=compact -- --deny warnings
cargo +nightly clippy --features=format,radix -- --deny warnings
cargo +nightly clippy --all-features -- --deny warnings
# ASM, size, and benchmarks use separate workspaces, do those separately.
cd lexical-asm
cargo +nightly fmt -- --check
cargo +nightly clippy --all-features -- --deny warnings
cd ../lexical-size
cargo +nightly fmt -- --check
cargo +nightly clippy --all-features -- --deny warnings
cd ../lexical-benchmark
cargo +nightly fmt -- --check
cargo +nightly clippy --all-features --benches -- --deny warnings