mirror of
https://git.uploadfilter24.eu/lerentis/terraform-provider-gitea.git
synced 2024-11-14 14:08:12 +00:00
37 lines
667 B
Makefile
37 lines
667 B
Makefile
|
.PHONY: setup
|
||
|
setup:
|
||
|
go get -u gopkg.in/alecthomas/gometalinter.v1
|
||
|
gometalinter.v1 --install
|
||
|
|
||
|
.PHONY: test
|
||
|
test: validate lint
|
||
|
@echo "==> Running tests"
|
||
|
go test -v
|
||
|
|
||
|
.PHONY: validate
|
||
|
validate:
|
||
|
@echo "==> Running static validations"
|
||
|
@gometalinter.v1 \
|
||
|
--disable-all \
|
||
|
--enable deadcode \
|
||
|
--severity deadcode:error \
|
||
|
--enable gofmt \
|
||
|
--enable gosimple \
|
||
|
--enable ineffassign \
|
||
|
--enable misspell \
|
||
|
--enable vet \
|
||
|
--tests \
|
||
|
--vendor \
|
||
|
--deadline 60s \
|
||
|
./... || exit_code=1
|
||
|
|
||
|
.PHONY: lint
|
||
|
lint:
|
||
|
@echo "==> Running linters"
|
||
|
@gometalinter.v1 \
|
||
|
--disable-all \
|
||
|
--enable golint \
|
||
|
--vendor \
|
||
|
--deadline 60s \
|
||
|
./... || :
|