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

43 lines
772 B
Makefile
Raw Normal View History

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