-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
54 lines (38 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
54
module = github.com/zeta-chain/go-tss-ctx
.PHONY: clear tools install test test-watch lint-pre lint lint-verbose protob build docker-gitlab-login docker-gitlab-push docker-gitlab-build
all: lint build
clear:
clear
tools:
go install ./cmd/tss-recovery
go install ./cmd/tss-benchgen
go install ./cmd/tss-benchsign
install: go.sum
go install ./cmd/tss
go.sum: go.mod
@echo "--> Ensure dependencies have not been modified"
go mod verify
test:
@go test --race ./...
test-watch: clear
@gow -c test -tags testnet -mod=readonly ./...
lint-pre:
@gofumpt -l cmd common keygen keysign messages p2p storage tss # for display
@test -z "$(gofumpt -l cmd common keygen keysign messages p2p storage tss)" # cause error
@go mod verify
lint: lint-pre
@golangci-lint run
lint-verbose: lint-pre
@golangci-lint run -v
protob:
protoc --go_out=module=$(module):. ./messages/*.proto
build: protob
go build ./...
# ------------------------------- GitLab ------------------------------- #
docker-gitlab-login:
docker login -u ${CI_REGISTRY_USER} -p ${CI_REGISTRY_PASSWORD} ${CI_REGISTRY}
docker-gitlab-push:
docker push registry.gitlab.com/thorchain/tss/go-tss
docker-gitlab-build:
docker build -t registry.gitlab.com/thorchain/tss/go-tss .
docker tag registry.gitlab.com/thorchain/tss/go-tss $$(git rev-parse --short HEAD)