forked from Layr-Labs/eigensdk-rs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
44 lines (33 loc) · 1.13 KB
/
Makefile
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
42
43
44
PHONY: reset-anvil
__CONTRACTS__: ##
start-anvil-chain-with-contracts-deployed: ##
./crates/contracts/anvil/start-anvil-chain-with-el-and-avs-deployed.sh
deploy-contracts-to-anvil-and-save-state: ##
./crates/contracts/anvil/deploy-contracts-save-anvil-state.sh
__TESTING__: ##
reset-anvil:
-docker stop anvil
-docker rm anvil
pr:
$(MAKE) start-anvil > /dev/null &
sleep 4 # needed to wait for anvil setup to finish
cargo test --workspace
docker stop anvil
coverage:
$(MAKE) start-anvil > /dev/null &
sleep 4 # needed to wait for anvil setup to finish
cargo llvm-cov --lcov --output-path lcov.info --ignore-filename-regex='fireblocks/' --workspace
cargo llvm-cov report --html --ignore-filename-regex='fireblocks/'
docker stop anvil
deps:
@if ! command -v cargo-llvm-cov &> /dev/null; then \
cargo install cargo-llvm-cov; \
fi
fireblocks-tests:
$(MAKE) start-anvil > /dev/null &
cargo test --workspace --features fireblock-tests
lint:
cargo fmt --all -- --check \
&& cargo clippy --workspace --all-features --benches --examples --tests -- -D warnings
start-anvil: reset-anvil ##
$(MAKE) start-anvil-chain-with-contracts-deployed