forked from nytimes/gizmo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
62 lines (48 loc) · 1.1 KB
/
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
all: test
deps:
go get -d -v github.com/NYTimes/gizmo/...
updatedeps:
go get -d -v -u -f github.com/NYTimes/gizmo/...
testdeps:
go get -d -v -t github.com/NYTimes/gizmo/...
updatetestdeps:
go get -d -v -t -u -f github.com/NYTimes/gizmo/...
build: deps
go build github.com/NYTimes/gizmo/...
install: deps
go install github.com/NYTimes/gizmo/...
lint: testdeps
go get -v github.com/golang/lint/golint
for file in $$(find . -name '*.go' | grep -v '\.pb\.go\|\.pb\.gw\.go\|examples\|pubsub\/aws\/awssub_test\.go'); do \
golint $${file}; \
if [ -n "$$(golint $${file})" ]; then \
exit 1; \
fi; \
done
vet: testdeps
go vet github.com/NYTimes/gizmo/...
errcheck: testdeps
go get -v github.com/kisielk/errcheck
errcheck -ignoretests github.com/NYTimes/gizmo/...
pretest: lint vet # errcheck
test: testdeps pretest
go test github.com/NYTimes/gizmo/...
clean:
go clean -i github.com/NYTimes/gizmo/...
coverage: testdeps
./coverage.sh --coveralls
.PHONY: \
all \
deps \
updatedeps \
testdeps \
updatetestdeps \
build \
install \
lint \
vet \
errcheck \
pretest \
test \
clean \
coverage