clair/vendor/github.com/docker/engine-api/Makefile

22 lines
340 B
Makefile
Raw Normal View History

2016-06-09 15:44:24 +00:00
.PHONY: all deps test validate lint
all: deps test validate
deps:
go get -t ./...
go get github.com/golang/lint/golint
test:
go test -race -cover ./...
validate: lint
go vet ./...
test -z "$(gofmt -s -l . | tee /dev/stderr)"
lint:
out="$$(golint ./...)"; \
if [ -n "$$(golint ./...)" ]; then \
echo "$$out"; \
exit 1; \
fi