service/vendor/github.com/montanaflynn/stats/Makefile

35 lines
665 B
Makefile
Raw Normal View History

2023-12-21 22:17:40 +08:00
.PHONY: all
2024-10-12 16:28:53 +08:00
default: test lint
2023-12-21 22:17:40 +08:00
format:
2024-10-12 16:28:53 +08:00
go fmt .
2023-12-21 22:17:40 +08:00
test:
go test -race
check: format test
benchmark:
go test -bench=. -benchmem
coverage:
go test -coverprofile=coverage.out
go tool cover -html="coverage.out"
lint: format
2024-10-12 16:28:53 +08:00
golangci-lint run .
docs:
godoc2md github.com/montanaflynn/stats | sed -e s#src/target/##g > DOCUMENTATION.md
release:
git-chglog --output CHANGELOG.md --next-tag ${TAG}
git add CHANGELOG.md
git commit -m "Update changelog with ${TAG} changes"
git tag ${TAG}
git-chglog $(TAG) | tail -n +4 | gsed '1s/^/$(TAG)\n/gm' > release-notes.txt
git push origin master ${TAG}
hub release create --copy -F release-notes.txt ${TAG}
2023-12-21 22:17:40 +08:00