1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2025-01-24 04:16:27 +02:00
goreleaser/Makefile

37 lines
980 B
Makefile
Raw Normal View History

2017-01-02 11:23:28 +01:00
SOURCE_FILES?=$$(glide novendor)
TEST_PATTERN?=.
TEST_OPTIONS?=
setup: ## Install all the build and lint dependencies
2017-01-02 13:57:36 -02:00
go get -u github.com/alecthomas/gometalinter
go get -u github.com/Masterminds/glide
2017-01-02 11:23:28 +01:00
glide install
test: ## Run all the tests
go test $(TEST_OPTIONS) -cover $(SOURCE_FILES) -run $(TEST_PATTERN) -timeout=30s
lint: ## Run all the linters
2017-01-02 13:57:36 -02:00
gometalinter --vendor --disable-all \
--enable=deadcode \
--enable=ineffassign \
--enable=gosimple \
--enable=staticcheck \
--enable=gofmt \
--enable=goimports \
--enable=dupl \
--enable=misspell \
--enable=errcheck \
--deadline=2m \
./...
2017-01-02 11:23:28 +01:00
ci: lint test ## Run all the tests and code checks
build: ## Build a beta version of releaser
go build
# Absolutely awesome: http://marmelab.com/blog/2016/02/29/auto-documented-makefile.html
help:
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'
2017-01-02 13:57:36 -02:00
.DEFAULT_GOAL := build