schnutibox/Makefile

53 lines
831 B
Makefile
Raw Normal View History

2021-03-30 19:59:26 +02:00
.PHONY: build
build:
goreleaser build --rm-dist --snapshot
.PHONY: release
release:
goreleaser release --rm-dist --snapshot --skip-publish
.PHONY: generate
generate:
go generate
.PHONY: lint
lint:
2021-04-16 09:34:22 +02:00
golangci-lint run --timeout 10m --enable-all --disable=exhaustivestruct
buf lint -v
2021-03-30 19:59:26 +02:00
.PHONY: test
test:
go test -v -race -cover ./...
.PHONY: test-integration
2021-06-01 15:18:39 +02:00
test-integration: build
go test -v -tags=integration -timeout=240m
.PHONY: test-all
test-all: test test-integration
2021-03-30 19:59:26 +02:00
.PHONY: readme
readme:
goreadme -title revive > README.md
.PHONY: tidy
tidy:
go mod tidy
go mod vendor
.PHONY: build-image
build-image:
2021-06-01 15:18:39 +02:00
./scripts/build.sh
2021-05-04 08:41:43 +02:00
.PHONY: install-tools
install-tools:
@cat tools.go | grep _ | awk -F'"' '{print $$2}' | xargs -tI % go install %
.PHONY: grpc-gen
grpc-gen:
buf generate -v
.PHONY: air
air:
air