-
Notifications
You must be signed in to change notification settings - Fork 85
Expand file tree
/
Copy pathMakefile
More file actions
34 lines (24 loc) · 807 Bytes
/
Makefile
File metadata and controls
34 lines (24 loc) · 807 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
BUMP_VERSION := $(GOPATH)/bin/bump_version
WRITE_MAILMAP := $(GOPATH)/bin/write_mailmap
lint:
go vet ./...
go run honnef.co/go/tools/cmd/staticcheck@latest ./...
go run github.com/kevinburke/differ@latest gofmt -s -w .
test:
@# the timeout helps guard against infinite recursion
go test -timeout=250ms ./...
race-test:
go test -timeout=500ms -race ./...
coverage:
go test -trimpath -timeout=250ms -coverprofile=coverage.out -covermode=atomic ./...
go tool cover -func=coverage.out
$(BUMP_VERSION):
go get -u github.com/kevinburke/bump_version
$(WRITE_MAILMAP):
go get -u github.com/kevinburke/write_mailmap
release: test | $(BUMP_VERSION)
$(BUMP_VERSION) --tag-prefix=v minor config.go
force: ;
AUTHORS.txt: force | $(WRITE_MAILMAP)
$(WRITE_MAILMAP) > AUTHORS.txt
authors: AUTHORS.txt