open-vault/vendor/github.com/fsouza/go-dockerclient/Makefile
2017-02-26 16:53:19 -05:00

42 lines
623 B
Makefile

.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:
go vet ./...
fmt:
gofmt -s -w .
fmtcheck:
[ -z "$$(gofmt -s -d . | tee /dev/stderr)" ]
testdeps:
go get -d -t ./...
pretest: testdeps lint vet fmtcheck
gotest:
go test $(GO_TEST_FLAGS) ./...
test: pretest gotest
integration:
go test -tags docker_integration -run TestIntegration -v
clean:
go clean ./...