logginghandler/Makefile
Marvin Preuss d095180eb4
All checks were successful
continuous-integration/drone/push Build is passing
build: uses go modules for tool handling
2022-01-14 13:51:56 +01:00

29 lines
610 B
Makefile

GO := go
GORELEASER := $(GO) run github.com/goreleaser/goreleaser
GOLANGCI_LINT := $(GO) run github.com/golangci/golangci-lint/cmd/golangci-lint
.PHONY: test
test:
$(GO) test -v ./...
.PHONY: lint
lint:
$(GOLANGCI_LINT) run --enable-all --disable=godox --timeout 10m
.PHONY: tidy
tidy:
$(GO) mod tidy
$(GO) mod vendor
.PHONY: install-tools
install-tools:
$(GO) list -f '{{range .Imports}}{{.}} {{end}}' third_party/tools/tools.go | xargs go install -v
.PHONY: build
build:
$(GORELEASER) build --rm-dist --snapshot
.PHONY: release
release:
$(GORELEASER) release --rm-dist --snapshot --skip-publish