4 files changed
+2
-22
No files matched your search
@@ -59,12 +59,6 @@ $(GOLANGCI_LINT): $(BINGO_DIR)/golangci-lint.mod
|
|||||||
@echo "(re)installing $(GOBIN)/golangci-lint-v1.37.1"
|
@echo "(re)installing $(GOBIN)/golangci-lint-v1.37.1"
|
||||||
@cd $(BINGO_DIR) && $(GO) build -mod=mod -modfile=golangci-lint.mod -o=$(GOBIN)/golangci-lint-v1.37.1 "github.com/golangci/golangci-lint/cmd/golangci-lint"
|
@cd $(BINGO_DIR) && $(GO) build -mod=mod -modfile=golangci-lint.mod -o=$(GOBIN)/golangci-lint-v1.37.1 "github.com/golangci/golangci-lint/cmd/golangci-lint"
|
||||||
|
|
||||||
GOVERAGE := $(GOBIN)/goverage-v0.0.0-20180129164344-eec3514a20b5
|
|
||||||
$(GOVERAGE): $(BINGO_DIR)/goverage.mod
|
|
||||||
@# Install binary/ries using Go 1.14+ build command. This is using bwplotka/bingo-controlled, separate go module with pinned dependencies.
|
|
||||||
@echo "(re)installing $(GOBIN)/goverage-v0.0.0-20180129164344-eec3514a20b5"
|
|
||||||
@cd $(BINGO_DIR) && $(GO) build -mod=mod -modfile=goverage.mod -o=$(GOBIN)/goverage-v0.0.0-20180129164344-eec3514a20b5 "github.com/haya14busa/goverage"
|
|
||||||
|
|
||||||
GOX := $(GOBIN)/gox-v1.0.1
|
GOX := $(GOBIN)/gox-v1.0.1
|
||||||
$(GOX): $(BINGO_DIR)/gox.mod
|
$(GOX): $(BINGO_DIR)/gox.mod
|
||||||
@# Install binary/ries using Go 1.14+ build command. This is using bwplotka/bingo-controlled, separate go module with pinned dependencies.
|
@# Install binary/ries using Go 1.14+ build command. This is using bwplotka/bingo-controlled, separate go module with pinned dependencies.
|
||||||
|
|||||||
@@ -1,5 +0,0 @@
|
|||||||
module _ // Auto generated by https://github.com/bwplotka/bingo. DO NOT EDIT
|
|
||||||
|
|
||||||
go 1.16
|
|
||||||
|
|
||||||
require github.com/haya14busa/goverage v0.0.0-20180129164344-eec3514a20b5
|
|
||||||
@@ -22,8 +22,6 @@ FLAEX="${GOBIN}/flaex-v0.2.1-0.20210701123229-9d7dceed124f"
|
|||||||
|
|
||||||
GOLANGCI_LINT="${GOBIN}/golangci-lint-v1.37.1"
|
GOLANGCI_LINT="${GOBIN}/golangci-lint-v1.37.1"
|
||||||
|
|
||||||
GOVERAGE="${GOBIN}/goverage-v0.0.0-20180129164344-eec3514a20b5"
|
|
||||||
|
|
||||||
GOX="${GOBIN}/gox-v1.0.1"
|
GOX="${GOBIN}/gox-v1.0.1"
|
||||||
|
|
||||||
HUGO="${GOBIN}/hugo-v0.87.0"
|
HUGO="${GOBIN}/hugo-v0.87.0"
|
||||||
|
|||||||
+2
-9
@@ -16,9 +16,7 @@ else
|
|||||||
GOBUILD ?= go build
|
GOBUILD ?= go build
|
||||||
endif
|
endif
|
||||||
|
|
||||||
PACKAGES ?= $(shell go list ./...)
|
|
||||||
SOURCES ?= $(shell find . -name "*.go" -type f -not -path "./node_modules/*")
|
SOURCES ?= $(shell find . -name "*.go" -type f -not -path "./node_modules/*")
|
||||||
GENERATE ?= $(PACKAGES)
|
|
||||||
|
|
||||||
TAGS ?=
|
TAGS ?=
|
||||||
|
|
||||||
@@ -78,16 +76,11 @@ ci-golangci-lint: $(GOLANGCI_LINT)
|
|||||||
$(GOLANGCI_LINT) run -E gosec -E bodyclose -E dogsled -E durationcheck -E golint -E ifshort -E makezero -E prealloc -E predeclared --path-prefix $(NAME) --timeout 10m0s --issues-exit-code 0 --out-format checkstyle > checkstyle.xml
|
$(GOLANGCI_LINT) run -E gosec -E bodyclose -E dogsled -E durationcheck -E golint -E ifshort -E makezero -E prealloc -E predeclared --path-prefix $(NAME) --timeout 10m0s --issues-exit-code 0 --out-format checkstyle > checkstyle.xml
|
||||||
|
|
||||||
.PHONY: test
|
.PHONY: test
|
||||||
test: $(GOVERAGE)
|
test:
|
||||||
@echo
|
@go test -v -coverprofile coverage.out ./...
|
||||||
@echo
|
|
||||||
@echo "$(NAME): test"
|
|
||||||
@echo
|
|
||||||
@$(GOVERAGE) -v -coverprofile coverage.out $(PACKAGES)
|
|
||||||
|
|
||||||
.PHONY: go-coverage
|
.PHONY: go-coverage
|
||||||
go-coverage:
|
go-coverage:
|
||||||
@echo "$(NAME): go-coverage"
|
|
||||||
@if [ ! -f coverage.out ]; then $(MAKE) test &>/dev/null; fi;
|
@if [ ! -f coverage.out ]; then $(MAKE) test &>/dev/null; fi;
|
||||||
@go tool cover -func coverage.out | tail -1 | grep -Eo "[0-9]+\.[0-9]+"
|
@go tool cover -func coverage.out | tail -1 | grep -Eo "[0-9]+\.[0-9]+"
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user