|
|
|
@ -18,6 +18,8 @@ OUTPUT_ROOT=output/
|
|
|
|
|
|
|
|
|
|
all: lint test build
|
|
|
|
|
|
|
|
|
|
travis: lintcgo testcgo build
|
|
|
|
|
|
|
|
|
|
.PHONY: all
|
|
|
|
|
|
|
|
|
|
#########################################
|
|
|
|
@ -119,9 +121,12 @@ generate:
|
|
|
|
|
# Test
|
|
|
|
|
#########################################
|
|
|
|
|
test:
|
|
|
|
|
$Q $(GOFLAGS) go test -short -coverprofile=coverage.out ./...
|
|
|
|
|
|
|
|
|
|
testcgo:
|
|
|
|
|
$Q go test -short -coverprofile=coverage.out ./...
|
|
|
|
|
|
|
|
|
|
.PHONY: test
|
|
|
|
|
.PHONY: test testcgo
|
|
|
|
|
|
|
|
|
|
integrate: integration
|
|
|
|
|
|
|
|
|
@ -138,9 +143,12 @@ fmt:
|
|
|
|
|
$Q gofmt -l -w $(SRC)
|
|
|
|
|
|
|
|
|
|
lint:
|
|
|
|
|
$Q $(GOFLAGS) LOG_LEVEL=error golangci-lint run --timeout=30m
|
|
|
|
|
|
|
|
|
|
lintcgo:
|
|
|
|
|
$Q LOG_LEVEL=error golangci-lint run --timeout=30m
|
|
|
|
|
|
|
|
|
|
.PHONY: lint fmt
|
|
|
|
|
.PHONY: fmt lint lintcgo
|
|
|
|
|
|
|
|
|
|
#########################################
|
|
|
|
|
# Install
|
|
|
|
|