forked from kevinburke/twilio-go
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
45 lines (31 loc) · 938 Bytes
/
Makefile
File metadata and controls
45 lines (31 loc) · 938 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
35
36
37
38
39
40
41
42
43
44
45
.PHONY: test vet release
# would be great to make the bash location portable but not sure how
SHELL = /bin/bash -o pipefail
DIFFER := $(GOPATH)/bin/differ
WRITE_MAILMAP := $(GOPATH)/bin/write_mailmap
BUMP_VERSION := $(GOPATH)/bin/bump_version
MEGACHECK := $(GOPATH)/bin/megacheck
test: lint
go test ./...
$(BUMP_VERSION):
go get github.com/Shyp/bump_version
$(DIFFER):
go get github.com/kevinburke/differ
$(MEGACHECK):
go get honnef.co/go/tools/cmd/megacheck
$(WRITE_MAILMAP):
go get github.com/kevinburke/write_mailmap
lint: | $(MEGACHECK)
go vet ./...
$(MEGACHECK) --ignore='github.com/kevinburke/twilio-go/*.go:S1002' ./...
race-test: vet
go test -race ./...
race-test-short: vet
go test -short -race ./...
release: race-test | $(DIFFER) $(BUMP_VERSION)
$(DIFFER) $(MAKE) authors
$(BUMP_VERSION) minor http.go
force: ;
AUTHORS.txt: force | $(WRITE_MAILMAP)
$(WRITE_MAILMAP) > AUTHORS.txt
authors: AUTHORS.txt