You've already forked goreleaser
mirror of
https://github.com/goreleaser/goreleaser.git
synced 2026-05-16 09:20:15 +02:00
hiding commands, vendored linters only
This commit is contained in:
@@ -3,15 +3,15 @@ TEST_PATTERN?=.
|
||||
TEST_OPTIONS?=
|
||||
|
||||
setup: ## Install all the build and lint dependencies
|
||||
go get -u github.com/alecthomas/gometalinter
|
||||
go get -u github.com/Masterminds/glide
|
||||
glide install
|
||||
@go get -u -v github.com/alecthomas/gometalinter
|
||||
@go get -u -v github.com/Masterminds/glide
|
||||
@glide install
|
||||
|
||||
test: ## Run all the tests
|
||||
go test $(TEST_OPTIONS) -cover $(SOURCE_FILES) -run $(TEST_PATTERN) -timeout=30s
|
||||
@go test $(TEST_OPTIONS) -cover $(SOURCE_FILES) -run $(TEST_PATTERN) -timeout=30s
|
||||
|
||||
lint: ## Run all the linters
|
||||
gometalinter --vendor --disable-all \
|
||||
@gometalinter --vendor --vendored-linters --disable-all \
|
||||
--enable=deadcode \
|
||||
--enable=ineffassign \
|
||||
--enable=gosimple \
|
||||
@@ -21,13 +21,15 @@ lint: ## Run all the linters
|
||||
--enable=dupl \
|
||||
--enable=misspell \
|
||||
--enable=errcheck \
|
||||
--deadline=2m \
|
||||
--enable=vet \
|
||||
--enable=vetshadow \
|
||||
--deadline=20s \
|
||||
./...
|
||||
|
||||
ci: lint test ## Run all the tests and code checks
|
||||
|
||||
build: ## Build a beta version of releaser
|
||||
go build
|
||||
@go build
|
||||
|
||||
# Absolutely awesome: http://marmelab.com/blog/2016/02/29/auto-documented-makefile.html
|
||||
help:
|
||||
|
||||
Reference in New Issue
Block a user