forked from kkrt-labs/kakarot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
78 lines (54 loc) · 1.8 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
.PHONY: build test coverage
pull-ef-tests: .gitmodules
git submodule update --init --recursive
build: check
$(MAKE) clean
poetry run python ./scripts/compile_kakarot.py
check:
poetry lock --check
setup:
poetry install
test: build-sol deploy
poetry run pytest tests/integration tests/src -m "not EFTests" --log-cli-level=INFO -n logical
poetry run pytest tests/end_to_end
test-no-log: build-sol deploy
poetry run pytest tests/integration tests/src -m "not EFTests" -n logical
poetry run pytest tests/end_to_end
test-integration: build-sol
poetry run pytest tests/integration -m "not EFTests" --log-cli-level=INFO -n logical
test-unit:
poetry run pytest tests/src --log-cli-level=INFO
test-end-to-end: deploy
poetry run pytest tests/end_to_end --log-cli-level=INFO
run-test-log: build-sol
poetry run pytest -k $(test) -m "not EFTests" --log-cli-level=INFO -vvv -s
run-test: build-sol
poetry run pytest -k $(test) -m "not EFTests"
run-test-mark-log: build-sol
poetry run pytest -m $(mark) --log-cli-level=INFO -vvv -s
run-test-mark: build-sol
poetry run pytest -m $(mark)
deploy: build
poetry run python ./scripts/deploy_kakarot.py
format:
trunk check --fix
format-check:
trunk check --ci
clean:
rm -rf build
mkdir build
check-resources:
poetry run python scripts/check_resources.py
get-blockhashes:
poetry run python scripts/get_latest_blockhashes.py
build-sol:
forge build --names --force
run:
mkdir -p deployments/starknet-devnet
docker run -p 5050:5050 shardlabs/starknet-devnet-rs --seed 0
install-katana:
cargo install --git https://github.com/dojoengine/dojo --locked --rev e0054e7 katana
run-katana:
katana --validate-max-steps 16777216 --invoke-max-steps 16777216
run-katana-with-dump:
katana --validate-max-steps 16777216 --invoke-max-steps 16777216 --dump-state ./kakarot-katana-dump