forked from fsouza/go-dockerclient
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
44 lines (34 loc) · 734 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
39
40
41
42
43
44
.PHONY: \
all \
lint \
vet \
fmt \
fmtcheck \
pretest \
test \
integration \
clean
all: test
lint:
@ go get -v github.com/golang/lint/golint
@ export output="$$(golint . | grep -v 'type name will be used as docker.DockerInfo')"; \
[ -n "$${output}" ] && echo "$${output}" && export status=1; \
exit $${status:-0}
vet:
go vet ./...
fmt:
gofmt -s -w .
fmtcheck:
@ export output="$$(gofmt -s -d .)"; \
[ -n "$${output}" ] && echo "$${output}" && export status=1; \
exit $${status:-0}
testdeps:
go get -d -t ./...
pretest: testdeps lint vet fmtcheck
gotest:
go test $(GO_TEST_FLAGS) ./...
test: pretest gotest
integration:
go test -tags docker_integration -run TestIntegration -v
clean:
go clean ./...