diff options
Diffstat (limited to 'vendor/github.com/fsouza/go-dockerclient/Makefile')
-rw-r--r-- | vendor/github.com/fsouza/go-dockerclient/Makefile | 57 |
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 | |||
14 | PKGS = . ./testing | ||
15 | |||
16 | all: test | ||
17 | |||
18 | vendor: | ||
19 | @ go get -v github.com/mjibson/party | ||
20 | party -d external -c -u | ||
21 | |||
22 | lint: | ||
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 | |||
30 | vet: | ||
31 | go vet $(PKGS) | ||
32 | |||
33 | fmt: | ||
34 | gofmt -s -w $(PKGS) | ||
35 | |||
36 | fmtcheck: | ||
37 | @ export output=$$(gofmt -s -d $(PKGS)); \ | ||
38 | [ -n "$${output}" ] && echo "$${output}" && export status=1; \ | ||
39 | exit $${status:-0} | ||
40 | |||
41 | pretest: lint vet fmtcheck | ||
42 | |||
43 | gotest: | ||
44 | go test $(GO_TEST_FLAGS) $(PKGS) | ||
45 | |||
46 | test: pretest gotest | ||
47 | |||
48 | integration: | ||
49 | go test -tags docker_integration -run TestIntegration -v | ||
50 | |||
51 | cov: | ||
52 | @ go get -v github.com/axw/gocov/gocov | ||
53 | @ go get golang.org/x/tools/cmd/cover | ||
54 | gocov test | gocov report | ||
55 | |||
56 | clean: | ||
57 | go clean $(PKGS) | ||