aboutsummaryrefslogtreecommitdiff
path: root/vendor/github.com/opentracing/opentracing-go/Makefile
blob: 62abb63f58de6d895e99e170bfe4d02ccba4a528 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
.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 ./...