forked from nats-io/nats-account-server
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
41 lines (31 loc) · 778 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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
build: fmt check compile
fmt:
#misspell -locale US .
gofmt -s -w server/conf/*.go
gofmt -s -w server/core/*.go
gofmt -s -w server/logging/*.go
gofmt -s -w server/store/*.go
goimports -w server/conf/*.go
goimports -w server/core/*.go
goimports -w server/logging/*.go
goimports -w server/store/*.go
check:
go vet ./...
staticcheck ./...
update:
go get -u honnef.co/go/tools/cmd/staticcheck
go get -u github.com/client9/misspell/cmd/misspell
compile:
go build ./...
install: build
go install ./...
cover: test
go tool cover -html=./coverage.out
test: check
go mod vendor
rm -rf ./cover.out
go test -tags test -race -coverpkg=./server/... -coverprofile=./coverage.out ./...
fasttest:
scripts/cov.sh
failfast:
go test -tags test -race -failfast ./...