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
|
2021-03-30 19:59:26 +02:00
|
|
|
|
|
|
|
.PHONY: test
|
|
|
|
test:
|
|
|
|
go test -v -race -cover ./...
|
|
|
|
|
2021-04-10 17:47:18 +02:00
|
|
|
.PHONY: test-integration
|
|
|
|
test-integration: release
|
|
|
|
go test -v -tags=integration -timeout=120m
|
|
|
|
|
2021-03-30 19:59:26 +02:00
|
|
|
.PHONY: readme
|
|
|
|
readme:
|
|
|
|
goreadme -title revive > README.md
|
2021-04-10 17:47:18 +02:00
|
|
|
|
|
|
|
.PHONY: tidy
|
|
|
|
tidy:
|
|
|
|
go mod tidy
|
|
|
|
go mod vendor
|
|
|
|
|
|
|
|
.PHONY: build-image
|
|
|
|
build-image:
|
|
|
|
sudo ./scripts/build.sh
|