diff --git a/Makefile b/Makefile index 185a80f..55a1dfd 100644 --- a/Makefile +++ b/Makefile @@ -108,7 +108,10 @@ release-minor: bump-minor git-push release-patch: bump-patch git-push -setup: setup-dirs setup-build setup-format setup-lint setup-reports setup-bump +setup: setup-dirs setup-build setup-format setup-lint setup-reports setup-bump setup-stringer + +setup-stringer: + go install golang.org/x/tools/cmd/stringer@latest setup-bump: go install github.com/guilhem/bump@latest @@ -149,10 +152,13 @@ format: dep: $(GODEP) $(PKG)/... +gen: + $(GOCMD) generate + lint: setup-dirs dep $(GOLINT) "$(PKGDIR)" | tee "$(RPTDIR)/lint.out" -check: setup-dirs clean dep +check: setup-dirs clean dep setup-stringer gen $(GOTEST) $$(go list "$(PKG)/..." | grep -v /vendor/) | tee "$(RPTDIR)/test.out" bench: setup-dirs clean dep