#!/bin/bash | |
set -e | |
check() { | |
echo "==> Running $@" | |
"$@" | |
echo "===" | |
} | |
FEATURES=python | |
# Build and test in release mode to make tests execute faster. | |
check cargo build --release --features ${FEATURES} | |
check cargo test --release --features ${FEATURES} | |
check cargo fmt --check | |
check cargo clippy --features ${FEATURES} -- -D clippy::pedantic | |
echo | |
echo "All presubmit steps passed!" |