mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-12-24 09:20:31 +00:00
c28f7cb29f
Initial part of #435
15 lines
No EOL
420 B
Makefile
15 lines
No EOL
420 B
Makefile
PKG_LIST = $$( go list ./... | grep -v /vendor/ | grep -v "zxcvbn-go/data" )
|
|
|
|
.DEFAULT_GOAL := help
|
|
|
|
.PHONY: help
|
|
help:
|
|
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'
|
|
|
|
.PHONY: test
|
|
test: ## Run `go test {Package list}` on the packages
|
|
go test $(PKG_LIST)
|
|
|
|
.PHONY: lint
|
|
lint: ## Run `golint {Package list}`
|
|
golint $(PKG_LIST)
|