forked from saintpete/twilio-go
-
Notifications
You must be signed in to change notification settings - Fork 69
/
Makefile
38 lines (27 loc) · 888 Bytes
/
Makefile
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
.PHONY: test vet release
# would be great to make the bash location portable but not sure how
SHELL = /bin/bash -o pipefail
test: lint
go test ./...
lint: fmt
go vet ./...
go run honnef.co/go/tools/cmd/staticcheck@latest ./...
race-test: lint
go test -race ./...
race-test-short: lint
go test -short -race ./...
fmt:
go fmt ./...
ci: | $(DIFFER)
# would love to run differ make authors here, but Github doesn't check out
# the full history
go run -v github.com/kevinburke/differ@latest $(MAKE) fmt
$(MAKE) lint race-test-short
release: race-test-short
go run -v github.com/kevinburke/differ@latest $(MAKE) authors
go run -v github.com/kevinburke/differ@latest $(MAKE) fmt
go run -v github.com/kevinburke/bump_version@latest minor http.go
force: ;
AUTHORS.txt: .mailmap force
go run -v github.com/kevinburke/write_mailmap@latest > AUTHORS.txt
authors: AUTHORS.txt