status-go/vendor/gopkg.in/go-playground/validator.v9/Makefile

18 lines
389 B
Makefile
Raw Normal View History

2019-07-17 22:25:42 +00:00
GOCMD=go
linters-install:
@golangci-lint --version >/dev/null 2>&1 || { \
echo "installing linting tools..."; \
curl -sfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh| sh -s v1.19.1; \
}
2019-07-17 22:25:42 +00:00
lint: linters-install
golangci-lint run
2019-07-17 22:25:42 +00:00
test:
$(GOCMD) test -cover -race ./...
bench:
$(GOCMD) test -bench=. -benchmem ./...
.PHONY: test lint linters-install