mirror of
https://github.com/goreleaser/goreleaser.git
synced 2025-02-01 13:07:49 +02:00
Add a working Makefile
This commit is contained in:
parent
ab2d5a15f1
commit
636470ec28
30
Makefile
Normal file
30
Makefile
Normal file
@ -0,0 +1,30 @@
|
|||||||
|
SOURCE_FILES?=$$(glide novendor)
|
||||||
|
TEST_PATTERN?=.
|
||||||
|
TEST_OPTIONS?=
|
||||||
|
|
||||||
|
setup: ## Install all the build and lint dependencies
|
||||||
|
curl https://glide.sh/get | sh
|
||||||
|
go get -u github.com/kisielk/errcheck
|
||||||
|
go get -u github.com/golang/lint/golint
|
||||||
|
glide install
|
||||||
|
|
||||||
|
test: ## Run all the tests
|
||||||
|
go test $(TEST_OPTIONS) -cover $(SOURCE_FILES) -run $(TEST_PATTERN) -timeout=30s
|
||||||
|
|
||||||
|
lint: ## Run all the linters
|
||||||
|
errcheck $(SOURCE_FILES)
|
||||||
|
go vet $(SOURCE_FILES)
|
||||||
|
golint ./... | grep -v vendor
|
||||||
|
|
||||||
|
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}'
|
||||||
|
|
||||||
|
.DEFAULT_GOAL := help
|
||||||
|
|
||||||
|
.PHONY: assets
|
Loading…
x
Reference in New Issue
Block a user