Skip to content

Commit 7626f1f

Browse files
committed
added makefile
1 parent a3fd599 commit 7626f1f

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

makefile

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
PKGS = ./auth ./core ./core/connstring ./core/desc ./core/msg ./ops
2+
LINTARGS = -min_confidence="0.3"
3+
TEST_TIMEOUT = 20
4+
5+
default: test-cover lint vet
6+
7+
doc:
8+
godoc -http=:6060 -index
9+
10+
lint:
11+
golint $(LINTARGS) ./auth
12+
golint $(LINTARGS) ./core
13+
golint $(LINTARGS) ./core/connstring
14+
golint $(LINTARGS) ./core/desc
15+
golint $(LINTARGS) ./core/msg
16+
golint $(LINTARGS) ./ops
17+
18+
test:
19+
go test -timeout $(TEST_TIMEOUT)s $(PKGS)
20+
21+
test-cover:
22+
go test -cover -timeout $(TEST_TIMEOUT)s $(PKGS)
23+
24+
test-race:
25+
go test -race -timeout $(TEST_TIMEOUT)s $(PKGS)
26+
27+
test-short:
28+
go test -short -timeout $(TEST_TIMEOUT)s $(PKGS)
29+
30+
vet:
31+
go tool vet -composites=false $(PKGS)

0 commit comments

Comments
 (0)