Makefile 452 B

12345678910111213141516171819202122232425
  1. GO = go
  2. GOGET = $(GO) get -u
  3. all: test lint
  4. test:
  5. $(GO) test -v -cover
  6. test-deps:
  7. $(GOGET) golang.org/x/tools/cmd/cover
  8. $(GOGET) github.com/djherbis/times
  9. lint:
  10. gofmt -l -e -s . || :
  11. go vet . || :
  12. golint . || :
  13. gocyclo -over 15 . || :
  14. misspell ./* || :
  15. lint-deps:
  16. $(GOGET) github.com/golang/lint/golint
  17. $(GOGET) github.com/fzipp/gocyclo
  18. $(GOGET) github.com/client9/misspell/cmd/misspell
  19. .PHONY: all deps test test-deps lint lint-deps