mirror of
https://github.com/git-chglog/git-chglog.git
synced 2026-01-23 18:35:06 +00:00
36 lines
589 B
Makefile
36 lines
589 B
Makefile
.PHONY: bootstrap
|
|
bootstrap: clean deps
|
|
|
|
.PHONY: deps
|
|
deps:
|
|
dep ensure -v
|
|
|
|
.PHONY: clean
|
|
clean:
|
|
rm -rf ./vendor/
|
|
rm -rf ./dist/
|
|
rm -rf ./git-chglog
|
|
rm -rf $(GOPATH)/bin/git-chglog
|
|
rm -rf cover.out
|
|
|
|
.PHONY: bulid
|
|
build:
|
|
go build -i -o git-chglog
|
|
|
|
.PHONY: test
|
|
test:
|
|
go test -v `go list ./... | grep -v /vendor/`
|
|
|
|
.PHONY: coverage
|
|
coverage:
|
|
goverage -coverprofile=cover.out `go list ./... | grep -v /vendor/`
|
|
go tool cover -func=cover.out
|
|
@rm -rf cover.out
|
|
|
|
.PHONY: install
|
|
install:
|
|
go install ./cmd/git-chglog
|
|
|
|
.PHONY: changelog
|
|
changelog:
|
|
@git-chglog --next-tag $(tag) $(tag)
|