1.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 ./...
21