-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
54 lines (45 loc) · 1.32 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
-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: build
build:
$(START_LOG)
@docker build \
-t machine:latest \
-f ./build/Dockerfile.machine .
@cartesi build --from-image machine:latest
$(END_LOG)
.PHONY: dev
dev:
$(START_LOG)
@nonodo -- air
.PHONY: verifier
verifier:
$(START_LOG)
@cd ./tools/tlsnotary/verifier && cargo build --release
@cp ./tools/tlsnotary/verifier/target/release/libverifier.a ./internal/usecase/crowdfunding_usecase/
$(END_LOG)
.PHONY: generate
generate:
$(START_LOG)
@go run ./pkg/rollups-contracts/generate
$(END_LOG)
.PHONY: test
test:
@cd ./tools/tlsnotary/verifier && cargo build --release
@cp ./tools/tlsnotary/verifier/target/release/libverifier.a ./internal/usecase/crowdfunding_usecase/
@go test -p=1 ./... -coverprofile=./coverage.md -v
.PHONY: coverage
coverage: test
@go tool cover -html=./coverage.md
.PHONY: state
state:
@chmod +x ./tools/state.sh
@./tools/state.sh