forked from grandinetech/grandine
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathci.sh
executable file
·41 lines (34 loc) · 1.04 KB
/
ci.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
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