16 lines
197 B
Bash
16 lines
197 B
Bash
|
#!/usr/bin/env bash
|
||
|
|
||
|
set -ex
|
||
|
cd "$(dirname "$0")"
|
||
|
cargo fmt -- --check
|
||
|
cargo clippy
|
||
|
cargo build
|
||
|
cargo build-bpf
|
||
|
|
||
|
if [[ $1 = -v ]]; then
|
||
|
export RUST_LOG=solana=debug
|
||
|
fi
|
||
|
|
||
|
cargo test
|
||
|
cargo test-bpf
|