add a release target

This commit is contained in:
Kevin Burke
2017-05-25 08:11:58 -07:00
parent fa48d7ff1c
commit b365efcd38
+8 -1
View File
@@ -1,3 +1,4 @@
BUMP_VERSION := $(shell command -v bump_version)
STATICCHECK := $(shell command -v staticcheck)
lint:
@@ -9,4 +10,10 @@ endif
test: lint
@# the timeout helps guard against infinite recursion
go test -timeout=30ms ./...
go test -timeout=50ms ./...
release:
ifndef BUMP_VERSION
go get -u github.com/Shyp/bump_version
endif
bump_version minor config.go