blob: cfc235c31f2b9cd7b16ff0005960c2ce02c69495 (
plain)
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
|
.PHONY: test test-cover bench lint get-deps .go-test .go-test-cover
test: .go-test bench lint
test-cover: .go-test-cover bench lint
bench:
go test -race -bench=. -cpu=1,2,4
lint:
gofmt -l .
ifneq ($(TRAVIS_GO_VERSION),1.3) # go vet doesn't play nicely on 1.3
go vet ./...
endif
which golint # Fail if golint doesn't exist
-golint . # Don't fail on golint warnings themselves
-golint store # Don't fail on golint warnings themselves
get-deps:
go get github.com/garyburd/redigo/redis
go get github.com/hashicorp/golang-lru
go get github.com/golang/lint/golint
.go-test:
go test ./...
.go-test-cover:
go test -coverprofile=throttled.coverage.out .
go test -coverprofile=store.coverage.out ./store
|