]> git.immae.eu Git - github/fretlink/terraform-provider-statuscake.git/blame - vendor/github.com/fsouza/go-dockerclient/Makefile
provider: Ensured Go 1.11 in TravisCI and README
[github/fretlink/terraform-provider-statuscake.git] / vendor / github.com / fsouza / go-dockerclient / Makefile
CommitLineData
9b12e4fe
JC
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)