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-23 03:19:33 -07:00
|
|
|
# TODO: Remove exception once https://github.com/poanetwork/hbbft/issues/415 is fixed.
|
|
|
|
cargo audit --ignore RUSTSEC-2019-0011
|
2019-04-26 07:54:12 -07:00
|
|
|
|
|
|
|
cd hbbft_testing
|
|
|
|
cargo clippy --all-targets -- --deny clippy::all
|
|
|
|
cargo fmt -- --check
|
|
|
|
cargo test --release
|
2019-07-23 03:19:33 -07:00
|
|
|
# TODO: Remove exception once https://github.com/poanetwork/hbbft/issues/415 is fixed.
|
|
|
|
cargo audit --ignore RUSTSEC-2019-0011
|
2019-04-26 07:54:12 -07:00
|
|
|
cd ..
|