undocker/Makefile
2021-06-01 09:00:27 +03:00

21 lines
377 B
Makefile

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 -race -cover ./...
.PHONY: lint
lint:
staticcheck -f stylish ./...
go vet ./...
.INTERMEDIATE: coverage.out
coverage.out: $(GODEPS)
go test -coverprofile $@ ./...
coverage.html: coverage.out
go tool cover -html=$< -o $@