schnutibox/Makefile
Marvin Steadfast 6919e48abe
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/tag Build is passing
ci: rises golangci-lint timeout
2021-04-16 09:34:22 +02:00

37 lines
590 B
Makefile

.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:
golangci-lint run --timeout 10m --enable-all --disable=exhaustivestruct
.PHONY: test
test:
go test -v -race -cover ./...
.PHONY: test-integration
test-integration: release
go test -v -tags=integration -timeout=120m
.PHONY: readme
readme:
goreadme -title revive > README.md
.PHONY: tidy
tidy:
go mod tidy
go mod vendor
.PHONY: build-image
build-image:
sudo ./scripts/build.sh