add apk/alpine support (#98)

This commit is contained in:
Alex Goodman
2020-07-23 20:35:57 -04:00
committed by GitHub
parent 63ba7ae47d
commit 2132700198
11 changed files with 461 additions and 4 deletions
+1 -1
View File
@@ -114,7 +114,7 @@ check-licenses:
.PHONY: unit
unit: ## Run unit tests (with coverage)
$(call title,Running unit tests)
go test --race -coverprofile $(COVER_REPORT) ./...
go test -coverprofile $(COVER_REPORT) ./...
@go tool cover -func $(COVER_REPORT) | grep total | awk '{print substr($$3, 1, length($$3)-1)}' > $(COVER_TOTAL)
@echo "Coverage: $$(cat $(COVER_TOTAL))"
@if [ $$(echo "$$(cat $(COVER_TOTAL)) >= $(COVERAGE_THRESHOLD)" | bc -l) -ne 1 ]; then echo "$(RED)$(BOLD)Failed coverage quality gate (> $(COVERAGE_THRESHOLD)%)$(RESET)" && false; fi