forked from onestraw/golb
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
39 lines (29 loc) · 752 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
PKGS := $(shell go list ./... | grep -v 'examples/')
TXT_FILES := $(shell find * -type f -not -path 'vendor/**')
TESTFLAG=-race -cover
test:
GOCACHE=off go test $(TESTFLAG) $(PKGS)
test-verbose:
go test -v $(TESTFLAG) $(PKGS)
loadtest:
dd if=/dev/zero ibs=1k count=1 of=test.data
ab -k -c100 -t30 -T application/octet-stream -p test.data 'http://127.0.0.1:8081/'
rm test.data
check: vet lint misspell staticcheck gosimple
lint:
@echo "golint"
golint -set_exit_status $(PKGS)
vet:
@echo "vet"
go vet $(PKGS)
misspell:
@echo "misspell"
misspell -source=text -error $(TXT_FILES)
staticcheck:
@echo "staticcheck"
staticcheck $(PKGS)
gosimple:
@echo "gosimple"
gosimple $(PKGS)
build:
go install github.com/onestraw/golb/cmd/golb/