1
0
mirror of https://github.com/docker/docker-credential-helpers.git synced 2026-06-13 16:01:28 +05:30

chore: use same target for sandboxed and native tests

Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
This commit is contained in:
CrazyMax
2023-05-28 15:10:21 +02:00
parent f8e94d91c0
commit d440e5916e
3 changed files with 9 additions and 7 deletions
+5 -2
View File
@@ -7,6 +7,7 @@ GO_LDFLAGS = -s -w -X ${GO_PKG}/credentials.Version=${VERSION} -X ${GO_PKG}/cred
BUILDX_CMD ?= docker buildx
DESTDIR ?= ./bin/build
COVERAGEDIR ?= ./bin/coverage
.PHONY: all
all: cross
@@ -35,8 +36,10 @@ release: # create release
./hack/release
.PHONY: test
test: # tests all packages except vendor
go test -v `go list ./... | grep -v /vendor/`
test:
mkdir -p $(COVERAGEDIR)
go test -short -v -coverprofile=$(COVERAGEDIR)/coverage.txt -covermode=atomic ./...
go tool cover -func=$(COVERAGEDIR)/coverage.txt
.PHONY: lint
lint: