fix sonarcloud run for master, remove unneeded configs, rework makefile

This commit is contained in:
Willy Kloucek
2020-12-28 11:57:46 +01:00
parent d964f2f6b1
commit 5c72d915ee
18 changed files with 99 additions and 82 deletions

View File

@@ -93,6 +93,11 @@ changelog:
test:
go run github.com/haya14busa/goverage -v -coverprofile coverage.out $(PACKAGES)
.PHONY: go-coverage
go-coverage:
@if [ ! -f coverage.out ]; then $(MAKE) test &>/dev/null; fi;
@go tool cover -func coverage.out | tail -1 | grep -Eo "[0-9]+\.[0-9]+"
.PHONY: install
install: $(SOURCES)
go install -v -tags '$(TAGS)' -ldflags '$(LDFLAGS)' ./cmd/$(NAME)