clair/vendor/github.com/docker/engine-api/Makefile
2016-09-28 15:24:38 +02:00

22 lines
340 B
Makefile

.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