Debian Codegraph @

Makefile

raw
1
2
3 .PHONY: test test-cover bench lint get-deps .go-test .go-test-cover
4
5 test: .go-test bench lint
6
7 test-cover: .go-test-cover bench lint
8
9 bench:
10 go test -race -bench=. -cpu=1,2,4
11
12 lint:
13 gofmt -l .
14 go vet ./...
15 which golint # Fail if golint doesn't exist
16 -golint . # Don't fail on golint warnings themselves
17 -golint store # Don't fail on golint warnings themselves
18
19 get-deps:
20 go get github.com/gomodule/redigo/redis
21 go get github.com/hashicorp/golang-lru
22 go get golang.org/x/lint/golint
23 go get github.com/go-redis/redis
24
25 .go-test:
26 go test ./...
27
28 .go-test-cover:
29 go test -coverprofile=throttled.coverage.out .
30 go test -coverprofile=store.coverage.out ./store