diff options
Diffstat (limited to 'vendor/github.com/throttled/throttled/Makefile')
-rw-r--r-- | vendor/github.com/throttled/throttled/Makefile | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/vendor/github.com/throttled/throttled/Makefile b/vendor/github.com/throttled/throttled/Makefile new file mode 100644 index 000000000..75df21ed3 --- /dev/null +++ b/vendor/github.com/throttled/throttled/Makefile @@ -0,0 +1,30 @@ + + +.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 . + go vet ./... + 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/gomodule/redigo/redis + go get github.com/hashicorp/golang-lru + go get github.com/golang/lint/golint + go get github.com/go-redis/redis + +.go-test: + go test ./... + +.go-test-cover: + go test -coverprofile=throttled.coverage.out . + go test -coverprofile=store.coverage.out ./store |