-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
50 lines (35 loc) · 1.1 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
module = gitlab.com/thorchain/tss/go-tss
.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 -timeout 30m ./...
test-watch: clear
@gow -c test -tags testnet -mod=readonly ./...
unittest:
@go test --race -v -coverprofile=coverage.out -timeout 30m ./...
@go tool cover -func=coverage.out
lint-pre:
@gofumpt -l cmd common keygen keysign messages p2p storage tss # for display
@test -z "$(shell 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 ./...
docker-build:
docker build -t registry.gitlab.com/thorchain/tss/go-tss .