aboutsummaryrefslogtreecommitdiffhomepage
path: root/vendor/github.com/fsouza/go-dockerclient/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/github.com/fsouza/go-dockerclient/Makefile')
-rw-r--r--vendor/github.com/fsouza/go-dockerclient/Makefile57
1 files changed, 57 insertions, 0 deletions
diff --git a/vendor/github.com/fsouza/go-dockerclient/Makefile b/vendor/github.com/fsouza/go-dockerclient/Makefile
new file mode 100644
index 0000000..2d6a5cf
--- /dev/null
+++ b/vendor/github.com/fsouza/go-dockerclient/Makefile
@@ -0,0 +1,57 @@
1.PHONY: \
2 all \
3 vendor \
4 lint \
5 vet \
6 fmt \
7 fmtcheck \
8 pretest \
9 test \
10 integration \
11 cov \
12 clean
13
14PKGS = . ./testing
15
16all: test
17
18vendor:
19 @ go get -v github.com/mjibson/party
20 party -d external -c -u
21
22lint:
23 @ go get -v github.com/golang/lint/golint
24 @for file in $$(git ls-files '*.go' | grep -v 'external/'); do \
25 export output="$$(golint $${file} | grep -v 'type name will be used as docker.DockerInfo')"; \
26 [ -n "$${output}" ] && echo "$${output}" && export status=1; \
27 done; \
28 exit $${status:-0}
29
30vet:
31 go vet $(PKGS)
32
33fmt:
34 gofmt -s -w $(PKGS)
35
36fmtcheck:
37 @ export output=$$(gofmt -s -d $(PKGS)); \
38 [ -n "$${output}" ] && echo "$${output}" && export status=1; \
39 exit $${status:-0}
40
41pretest: lint vet fmtcheck
42
43gotest:
44 go test $(GO_TEST_FLAGS) $(PKGS)
45
46test: pretest gotest
47
48integration:
49 go test -tags docker_integration -run TestIntegration -v
50
51cov:
52 @ go get -v github.com/axw/gocov/gocov
53 @ go get golang.org/x/tools/cmd/cover
54 gocov test | gocov report
55
56clean:
57 go clean $(PKGS)