2018-10-16 01:17:21 -07:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
set -xe
|
|
|
|
|
|
|
|
export RUST_BACKTRACE=1
|
|
|
|
# Enables additional cpu-specific optimizations.
|
|
|
|
export RUSTFLAGS="-D warnings -C target-cpu=native"
|
|
|
|
|
|
|
|
# Currently, mlocking secrets is disabled due to secure memory limit issues.
|
|
|
|
export MLOCK_SECRETS=false
|
|
|
|
|
2018-10-27 08:44:14 -07:00
|
|
|
cargo clippy --all-targets -- --deny clippy::all
|
|
|
|
cargo clippy --all-features --all-targets -- --deny clippy::all
|
2018-10-16 01:17:21 -07:00
|
|
|
cargo fmt -- --check
|
|
|
|
|
|
|
|
# We only test with mocktography, to ensure tests aren't unreasonably long.
|
|
|
|
cargo test --features=use-insecure-test-only-mock-crypto --release
|
|
|
|
cargo doc
|
|
|
|
cargo deadlinks --dir target/doc/hbbft/
|
2019-07-25 03:22:31 -07:00
|
|
|
cargo audit
|
2019-04-26 07:54:12 -07:00
|
|
|
|
|
|
|
cd hbbft_testing
|
|
|
|
cargo clippy --all-targets -- --deny clippy::all
|
|
|
|
cargo fmt -- --check
|
2019-07-23 07:19:15 -07:00
|
|
|
cargo test --features=use-insecure-test-only-mock-crypto --release
|
2019-07-25 03:22:31 -07:00
|
|
|
cargo audit
|
2019-04-26 07:54:12 -07:00
|
|
|
cd ..
|