Adding stringer and generate targets

dev
Nick Dumas 2 years ago
parent 8138ae6e54
commit 50973a9273

@ -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

Loading…
Cancel
Save