-
Notifications
You must be signed in to change notification settings - Fork 102
Expand file tree
/
Copy pathMakefile
More file actions
33 lines (26 loc) · 669 Bytes
/
Makefile
File metadata and controls
33 lines (26 loc) · 669 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
.PHONY: test vet release
# would be great to make the bash location portable but not sure how
SHELL = /bin/bash
WRITE_MAILMAP := $(shell command -v write_mailmap)
BUMP_VERSION := $(shell command -v bump_version)
STATICCHECK := $(shell command -v staticcheck)
test: vet
go test -short ./...
vet:
ifndef STATICCHECK
go get -u honnef.co/go/staticcheck/cmd/staticcheck
endif
go vet ./...
staticcheck ./...
race-test: vet
go test -race ./...
release: race-test
ifndef BUMP_VERSION
go get github.com/Shyp/bump_version
endif
bump_version minor http.go
authors:
ifndef WRITE_MAILMAP
go get github.com/kevinburke/write_mailmap
endif
write_mailmap > AUTHORS.txt