terraform/vendor/github.com/fsouza/go-dockerclient/Makefile

42 lines
623 B
Makefile
Raw Normal View History

.PHONY: \
all \
lint \
vet \
fmt \
fmtcheck \
pretest \
test \
integration \
clean
all: test
lint:
@ go get -v github.com/golang/lint/golint
2016-10-24 08:15:30 +02:00
[ -z "$$(golint . | grep -v 'type name will be used as docker.DockerInfo' | grep -v 'context.Context should be the first' | tee /dev/stderr)" ]
vet:
2016-10-24 08:15:30 +02:00
go vet ./...
fmt:
2016-10-24 08:15:30 +02:00
gofmt -s -w .
fmtcheck:
2016-10-24 08:15:30 +02:00
[ -z "$$(gofmt -s -d . | tee /dev/stderr)" ]
2016-10-24 08:15:30 +02:00
testdeps:
go get -d -t ./...
pretest: testdeps lint vet fmtcheck
gotest:
2016-10-24 08:15:30 +02:00
go test $(GO_TEST_FLAGS) ./...
test: pretest gotest
integration:
go test -tags docker_integration -run TestIntegration -v
clean:
2016-10-24 08:15:30 +02:00
go clean ./...