forked from chendehai/pressure-test
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
27 lines (20 loc) · 735 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
proxy:
@go env -w GO111MODULE="on"
@go env -w GOPROXY="https://goproxy.cn,direct"
clean:
@bash build/clean.sh
tidy:
@go mod tidy -e -v
fmt:
@goctl api format -dir ./gateway
@find . -name '*.go' -not -path "./vendor/*" -not -name "*.pb.go" | xargs gofumpt -w -s -extra
@find . -name '*.go' -not -path "./vendor/*" -not -name "*.pb.go" | xargs -n 1 -I {} -t goimports-reviser -file-path {} -local "gitlab.33.cn" project-name "gitlab.33.cn/proof/backend-micro/" -rm-unused
@find . -name '*.sh' -not -path "./vendor/*" | xargs shfmt -w -s -i 2 -ci -bn -sr
lint:
@golangci-lint run ./...
erc721:
@bash build/single-client.sh erc721
transfer:
@bash build/single-client.sh transfer
proof:
@bash build/single-client.sh proof