open-vault/vendor/github.com/fsouza/go-dockerclient/Makefile

43 lines
772 B
Makefile
Raw Normal View History

2017-02-26 21:53:19 +00:00
.PHONY: \
all \
lint \
vet \
fmt \
fmtcheck \
pretest \
test \
integration \
clean
all: test
lint:
@ go get -v github.com/golang/lint/golint
[ -z "$$(golint . | grep -v 'type name will be used as docker.DockerInfo' | grep -v 'context.Context should be the first' | tee /dev/stderr)" ]
vet:
2017-10-27 19:06:04 +00:00
go vet $$(go list ./... | grep -v vendor)
2017-02-26 21:53:19 +00:00
fmt:
2017-10-27 19:06:04 +00:00
gofmt -s -w $$(go list ./... | grep -v vendor)
2017-02-26 21:53:19 +00:00
fmtcheck:
2017-10-27 19:06:04 +00:00
[ -z "$$(gofmt -s -d $$(go list ./... | grep -v vendor) | tee /dev/stderr)" ]
2017-02-26 21:53:19 +00:00
testdeps:
2017-10-27 19:06:04 +00:00
go get -u github.com/golang/dep/cmd/dep
dep ensure -v
2017-02-26 21:53:19 +00:00
pretest: testdeps lint vet fmtcheck
gotest:
2017-10-27 19:06:04 +00:00
go test -race $$(go list ./... | grep -v vendor)
2017-02-26 21:53:19 +00:00
test: pretest gotest
integration:
go test -tags docker_integration -run TestIntegration -v
clean:
go clean ./...