* remove trailing whitespace in ci/audit.sh * code review fixups * rename GOSSIP_PORT_RANGE => SOLANA_PORT_RANGE * remove out-of-date TODO in localnet-sanity.sh * remove features=test and code that was using it (localhost prohibitions in crdt) added TODO in crdt.rs, maybe we should boot localhost in production networks? * boot tvu_window from NodeInfo: instead, send repair requests from the repair socket (to gossip on peer) and answer repair requests via the sockaddr from the repair request * remove various unused pub functions * banish SocketAddr parse().unwrap() to a macro that can also accept simpler stuff
31 lines
531 B
Bash
Executable File
31 lines
531 B
Bash
Executable File
#!/bin/bash -e
|
|
|
|
cd "$(dirname "$0")/.."
|
|
|
|
ci/version-check.sh nightly
|
|
export RUST_BACKTRACE=1
|
|
|
|
_() {
|
|
echo "--- $*"
|
|
"$@"
|
|
}
|
|
|
|
_ cargo build --verbose --features unstable
|
|
_ cargo test --verbose --features=unstable
|
|
_ cargo clippy -- --deny=warnings
|
|
|
|
exit 0
|
|
|
|
# Coverage disabled (see issue #433)
|
|
_ cargo cov test
|
|
_ cargo cov report
|
|
|
|
echo --- Coverage report:
|
|
ls -l target/cov/report/index.html
|
|
|
|
if [[ -z "$CODECOV_TOKEN" ]]; then
|
|
echo CODECOV_TOKEN undefined
|
|
else
|
|
bash <(curl -s https://codecov.io/bash) -x 'llvm-cov-6.0 gcov'
|
|
fi
|