forked from wesovilabs/koazee
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
38 lines (37 loc) · 853 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
# Go Tools
GO = GO111MODULE=on go
all: fmt check build test info
clean:
rm -f coverage.txt
deps:
${GO} mod vendor
${GO} mod download
test:
${GO} test -v ./...
test-coverage:
${GO} test -race -coverprofile=coverage.txt -covermode=atomic ./...
fmt:
GO111MODULE=on ${GO} fmt ./...
check: fmt
golangci-lint run
lint:
golint
op=
benchmark: fmt
ifeq ($(op),)
${GO} test -bench Benchmark.+ -failfast -run -Benchmark.+ -v ./benchmark/...
else
${GO} test -bench Benchmark.+ -failfast -run -Benchmark.+ -v ./benchmark/$(op)_test.go
endif
info: fmt
depscheck -totalonly -tests .
golocc
std-info: fmt
depscheck -stdlib -v .
install:
${GO} get -u github.com/divan/depscheck
${GO} install github.com/golangci/golangci-lint/cmd/golangci-lint
site:
cd .hugo; \
hugo --theme=kube; \
hugo server --config=config-local.toml --theme=kube --buildDrafts