2019-03-27 07:15:23 -04:00
|
|
|
BUMP_VERSION := $(GOPATH)/bin/bump_version
|
2019-07-31 12:45:42 -04:00
|
|
|
STATICCHECK := $(GOPATH)/bin/staticcheck
|
2019-03-27 07:15:23 -04:00
|
|
|
WRITE_MAILMAP := $(GOPATH)/bin/write_mailmap
|
|
|
|
|
2019-07-31 12:45:42 -04:00
|
|
|
$(STATICCHECK):
|
|
|
|
go get honnef.co/go/tools/cmd/staticcheck
|
2019-03-27 07:15:23 -04:00
|
|
|
|
2019-07-31 12:45:42 -04:00
|
|
|
lint: $(STATICCHECK)
|
2019-03-27 07:15:23 -04:00
|
|
|
go vet ./...
|
2019-07-31 12:45:42 -04:00
|
|
|
$(STATICCHECK)
|
2019-03-27 07:15:23 -04:00
|
|
|
|
|
|
|
test: lint
|
|
|
|
@# the timeout helps guard against infinite recursion
|
|
|
|
go test -timeout=250ms ./...
|
|
|
|
|
|
|
|
race-test: lint
|
|
|
|
go test -timeout=500ms -race ./...
|
|
|
|
|
|
|
|
$(BUMP_VERSION):
|
|
|
|
go get -u github.com/kevinburke/bump_version
|
|
|
|
|
|
|
|
release: test | $(BUMP_VERSION)
|
|
|
|
$(BUMP_VERSION) minor config.go
|
|
|
|
|
|
|
|
force: ;
|
|
|
|
|
|
|
|
AUTHORS.txt: force | $(WRITE_MAILMAP)
|
|
|
|
$(WRITE_MAILMAP) > AUTHORS.txt
|
|
|
|
|
|
|
|
authors: AUTHORS.txt
|