mirror of
https://github.com/rocky-linux/peridot.git
synced 2024-12-30 14:00:57 +00:00
20 lines
385 B
Makefile
20 lines
385 B
Makefile
.DEFAULT_GOAL := test-and-lint
|
|
|
|
.PHONY: test-and-lint
|
|
test-and-lint: test lint
|
|
|
|
.PHONY: test
|
|
test:
|
|
go test -v -cover -race ./...
|
|
|
|
.PHONY: cover
|
|
cover:
|
|
go test -v -coverprofile=coverage.txt -covermode=atomic -race ./...
|
|
|
|
.PHONY: lint
|
|
lint:
|
|
go fmt ./...
|
|
golint ./...
|
|
@# Run again with magic to exit non-zero if golint outputs anything.
|
|
@! (golint ./... | read dummy)
|
|
go vet ./...
|