-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6fe2be2
commit 78ae220
Showing
2 changed files
with
54 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
#!/bin/sh | ||
|
||
set -o errexit | ||
set -o nounset | ||
|
||
cd "$(dirname "$0")" | ||
|
||
export PATH="${CARGO_HOME:-$HOME/.cargo}/bin:$PATH" | ||
|
||
git submodule update --init \ | ||
../../consensus-spec-tests \ | ||
../../eth2_libp2p \ | ||
../../grandine-snapshot-tests \ | ||
../../slashing-protection-interchange-tests | ||
( | ||
cd ../../consensus-spec-tests | ||
git lfs pull | ||
) | ||
|
||
#curl \ | ||
# --fail \ | ||
# --proto =https \ | ||
# --show-error \ | ||
# --silent \ | ||
# --tlsv1.2 \ | ||
# https://sh.rustup.rs | | ||
# sponge | | ||
# sh -s -- --no-modify-path -y | ||
|
||
# `cargo-fmt` must be run in the root of a crate. It appears to be a regression: | ||
# <https://github.com/rust-lang/rustfmt/issues/3647> | ||
# Running `cargo-fmt` with `--all` works too but takes noticeably longer. This explains why: | ||
# <https://github.com/rust-lang/rustfmt/issues/4247#issuecomment-644957261> | ||
( | ||
cd ../.. | ||
cargo fmt -- --check | ||
) | ||
|
||
./clippy.bash --deny warnings | ||
cargo test --release --no-fail-fast | ||
./consensus-spec-tests-coverage.rb |