add undocker target

This commit is contained in:
Motiejus Jakštys 2021-06-01 08:49:39 +03:00
parent 4a611a9699
commit 86b7c30680

View File

@ -1,9 +1,14 @@
GODEPS = $(shell git ls-files '*.go' go.mod go.sum)
undocker: $(GODEPS)
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build
.PHONY: test
test:
go test -cover ./...
.INTERMEDIATE: coverage.out
coverage.out: $(shell git ls-files '*.go')
coverage.out: $(GODEPS)
go test -coverprofile $@ ./...
coverage.html: coverage.out