blob: afb0f9ad044a73cc684a6f61d71d273fb8f9b635 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
# Bail out once getting an error.
set -e
# Display verbose backtrace for debugging if backtrace is unset
if [ -z "${RUST_BACKTRACE}" ]; then
export RUST_BACKTRACE=1
fi
echo -e "RUST_BACKTRACE is set to ${RUST_BACKTRACE}\n"
# Format check
cargo fmt --all -- --check
# Lints check
cargo clippy --all-targets --all-features -- -D warnings
# Regular Tests
cargo test --verbose --all
|