forked from foundry-rs/foundry
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
34 lines (26 loc) · 881 Bytes
/
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
.PHONY: format lint test ready
# Repositories for integration tests that will be cloned inside `integration-tests/testdata/REPO` folders
INTEGRATION_TESTS_REPOS = \
mds1/drai \
reflexer-labs/geb \
hexonaut/guni-lev \
Rari-Capital/solmate \
Arachnid/solidity-stringutils \
rari-capital/vaults \
makerdao/multicall \
gakonst/lootloose
integration-tests-testdata: $(INTEGRATION_TESTS_REPOS)
$(INTEGRATION_TESTS_REPOS):
@FOLDER=$(shell dirname "$0")/integration-tests/testdata/$(lastword $(subst /, ,$@));\
if [ ! -d $$FOLDER ] ; then git clone --depth 1 --recursive https://github.com/$@ $$FOLDER;\
else cd $$FOLDER; git pull && git submodule update --recursive; fi
testdata: integration-tests-testdata
format:
cargo +nightly fmt
lint:
cargo +nightly clippy --all-features -- -D warnings
test:
cargo check
cargo test
cargo doc --open
ready: format lint test