This repository has been archived by the owner on May 28, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
81 lines (57 loc) · 1.61 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
COV_FILE:=coverage.txt
TEST_LOG ?= test.log
deps:
go get -t ./...
build:
go build ./...
vet:
go vet ./...
shadow:
@echo Running govet
go vet -vettool=$(GOPATH)/bin/shadow ./...
# $(GOPATH)/bin/shadow ./...
@echo Govet success
check_fmt:
$(eval GOFILES = $(shell find . -name '*.go'))
@gofmt -l $(GOFILES)
lint_old:
$(GOPATH)/bin/golint ./...
lint_e:
@$(GOPATH)/bin/golint ./... | grep -v export | cat
testv:
go test -v -p 1 -failfast ./... -args -logtostderr=true -v=3
test:
go test -p 1 -failfast ./...
ledger_test:
go test -v -p 1 -failfast ./anoncreds/... -args -logtostderr=true -v=10
ledger_testr0:
go test -race -count=1 -failfast ./anoncreds/... | tee $(TEST_LOG)
ledger_test_cov:
go test \
-coverpkg=github.com/findy-network/findy-wrapper-go/anoncreds/... \
-coverprofile=$(COV_FILE) \
-covermode=atomic ./anoncreds/...
ledger_test0:
go test -v -count 1 -failfast ./anoncreds/... -args -logtostderr -v=3 | tee $(TEST_LOG)
ledger_testr1:
go test -race -v -p 1 -failfast ./anoncreds/... -args -logtostderr=true -v=1 | tee $(TEST_LOG)
ledger_testr:
go test -race -v -p 1 -failfast ./anoncreds/... -args -logtostderr=true -v=10 | tee $(TEST_LOG)
logged_test:
go test -v -p 1 -failfast ./... -args -logtostderr=true -v=10
test_cov_out:
go test \
-coverpkg=github.com/findy-network/findy-wrapper-go/... \
-coverprofile=$(COV_FILE) \
-covermode=atomic \
./...
test_cov: test_cov_out
go tool cover -html=$(COV_FILE)
check: check_fmt vet shadow
lint: lint_ci
lint_ci:
golangci-lint run ./...
indy_to_debian:
./scripts/debian-libindy/install-indy.sh
release:
gh workflow run do-release.yml