-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
53 lines (44 loc) · 1.3 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
-include .env.develop
START_LOG = @echo "================================================= START OF LOG ==================================================="
END_LOG = @echo "================================================== END OF LOG ===================================================="
.PHONY: env
env: ./.env.develop
$(START_LOG)
@cp ./.env.develop.tmpl ./.env.develop
@touch .cartesi.env
@echo "Environment file created at ./.env.develop"
$(END_LOG)
.PHONY: machine
machine:
$(START_LOG)
@docker build \
-t machine:latest \
-f ./build/Dockerfile.machine .
@cartesi build --from-image machine:latest
$(END_LOG)
.PHONY: local
local:
$(START_LOG)
@nonodo -- cartesi-machine --network \
--flash-drive=label:root,filename:.cartesi/image.ext2 \
--env=ROLLUP_HTTP_SERVER_URL=http://10.0.2.2:5004 \
-- /var/opt/cartesi-app/app
.PHONY: bidings
bidings:
$(START_LOG)
@go run ./pkg/rollups_contracts/generate
$(END_LOG)
.PHONY: test
test:
@go test -p 1 ./... -coverprofile=./coverage.md -v
.PHONY: deploy_token
deploy_token:
$(START_LOG)
@cd contracts && forge script script/DeployVoltToken.s.sol --rpc-url $(RPC_URL) --broadcast --verify --etherscan-api-key $(API_KEY) -vvv
$(END_LOG)
.PHONY: coverage
coverage: test
@go tool cover -html=./coverage.md
.PHONY: docs
docs:
@cd docs && npm run dev