arti/maint/hooks/pre-push

16 lines
323 B
Bash
Executable File

#!/usr/bin/env bash
set -euo pipefail
echo '+cargo fmt --all -- --check'
cargo fmt --all -- --check
echo '+cargo clippy --all-features --all-targets -- -D warnings'
cargo clippy --all-features --all-targets -- -D warnings
echo '+cargo test --all'
cargo test --all
echo '+./maint/shellcheck_all'
./maint/shellcheck_all