blob: 62abb63f58de6d895e99e170bfe4d02ccba4a528 [file] [log] [blame]
khenaidooc6c7bda2020-06-17 17:20:18 -04001.DEFAULT_GOAL := test-and-lint
2
3.PHONY: test-and-lint
4test-and-lint: test lint
5
6.PHONY: test
7test:
8 go test -v -cover -race ./...
9
10.PHONY: cover
11cover:
12 go test -v -coverprofile=coverage.txt -covermode=atomic -race ./...
13
14.PHONY: lint
15lint:
16 go fmt ./...
17 golint ./...
18 @# Run again with magic to exit non-zero if golint outputs anything.
19 @! (golint ./... | read dummy)
20 go vet ./...