-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
48 lines (35 loc) · 1.04 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
45
46
47
48
PHONY: deploy-el-and-avs-contracts
PHONY: reset-anvil
PHONY: integration-tests
deploy-avs:
./contracts/anvil/deploy-avs.sh
deploy-eigenlayer:
./contracts/anvil/deploy-eigenlayer.sh
deploy-el-and-avs-contracts:
$(MAKE) deploy-eigenlayer
$(MAKE) deploy-avs
__TESTING__: ##
reset_anvil:
-docker stop anvil
-docker rm anvil
start_docker:
$(MAKE) reset_anvil
docker run -d --name anvil -p 8545:8545 --entrypoint anvil \
ghcr.io/foundry-rs/foundry:latest --host 0.0.0.0
sleep 2
pr:
$(MAKE) start_docker
$(MAKE) deploy-el-and-avs-contracts
cargo test --workspace --exclude incredible-bindings
cargo clippy --workspace --lib --examples --tests --benches --all-features --exclude incredible-bindings
cargo fmt -- --check
clippy:
cargo clippy --workspace --lib --examples --tests --benches --all-features --exclude incredible-bindings
integration_tests:
$(MAKE) start_docker
$(MAKE) deploy-el-and-avs-contracts
cargo test --manifest-path ./integration-tests/Cargo.toml
fmt:
cargo fmt
cd contracts && forge fmt
cd ..