Makefile 451 B

12345678910111213141516
  1. GOCMD=go
  2. linters-install:
  3. $(GOCMD) get -u github.com/alecthomas/gometalinter
  4. gometalinter --install
  5. lint: linters-install
  6. gometalinter --vendor --disable-all --enable=vet --enable=vetshadow --enable=golint --enable=maligned --enable=megacheck --enable=ineffassign --enable=misspell --enable=errcheck --enable=goconst ./...
  7. test:
  8. $(GOCMD) test -cover -race ./...
  9. bench:
  10. $(GOCMD) test -bench=. -benchmem ./...
  11. .PHONY: test lint linters-install