status-go/vendor/github.com/opentracing/opentracing-go/Makefile

21 lines
385 B
Makefile
Raw Normal View History

2019-06-09 07:24:20 +00:00
.DEFAULT_GOAL := test-and-lint
.PHONY: test-and-lint
2019-06-09 07:24:20 +00:00
test-and-lint: test lint
.PHONY: test
test:
go test -v -cover -race ./...
2019-06-09 07:24:20 +00:00
.PHONY: cover
2019-06-09 07:24:20 +00:00
cover:
go test -v -coverprofile=coverage.txt -covermode=atomic -race ./...
2019-06-09 07:24:20 +00:00
.PHONY: lint
lint:
go fmt ./...
golint ./...
@# Run again with magic to exit non-zero if golint outputs anything.
@! (golint ./... | read dummy)
go vet ./...