diff options
author | Christopher Speller <crspeller@gmail.com> | 2016-09-23 10:17:51 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-09-23 10:17:51 -0400 |
commit | 2ca0e8f9a0f9863555a26e984cde15efff9ef8f8 (patch) | |
tree | daae1ee67b14a3d0a84424f2a304885d9e75ce2b /vendor/gopkg.in/throttled/throttled.v2/Makefile | |
parent | 6d62d65b2dc85855aabea036cbd44f6059e19d13 (diff) | |
download | chat-2ca0e8f9a0f9863555a26e984cde15efff9ef8f8.tar.gz chat-2ca0e8f9a0f9863555a26e984cde15efff9ef8f8.tar.bz2 chat-2ca0e8f9a0f9863555a26e984cde15efff9ef8f8.zip |
Updating golang dependancies (#4075)
Diffstat (limited to 'vendor/gopkg.in/throttled/throttled.v2/Makefile')
-rw-r--r-- | vendor/gopkg.in/throttled/throttled.v2/Makefile | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/vendor/gopkg.in/throttled/throttled.v2/Makefile b/vendor/gopkg.in/throttled/throttled.v2/Makefile new file mode 100644 index 000000000..cfc235c31 --- /dev/null +++ b/vendor/gopkg.in/throttled/throttled.v2/Makefile @@ -0,0 +1,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 |