зеркало из https://github.com/docker/dockercraft.git
Make Makefile more Docker for Mac friendly
Signed-off-by: Dave Tucker <dt@docker.com>
This commit is contained in:
Родитель
499bb4ad78
Коммит
8d6dd76c98
7
Makefile
7
Makefile
|
@ -6,6 +6,7 @@ PKG_NAME = github.com/${REPO_OWNER}/${REPO_NAME}
|
||||||
IMAGE = golang:1.7.1
|
IMAGE = golang:1.7.1
|
||||||
IMAGE_NAME = dockercraft-dev
|
IMAGE_NAME = dockercraft-dev
|
||||||
CONTAINER_NAME = dockercraft-dev-container
|
CONTAINER_NAME = dockercraft-dev-container
|
||||||
|
PACKAGES=$(shell go list ./... | grep -v vendor)
|
||||||
|
|
||||||
all: test
|
all: test
|
||||||
|
|
||||||
|
@ -22,15 +23,15 @@ install-deps:
|
||||||
|
|
||||||
lint:
|
lint:
|
||||||
@echo "+ $@"
|
@echo "+ $@"
|
||||||
@test -z "$$(golint ./... | grep -v vendor/ | tee /dev/stderr)"
|
@test -z "$$(golint $(PACKAGES) | tee /dev/stderr)"
|
||||||
|
|
||||||
fmt:
|
fmt:
|
||||||
@echo "+ $@"
|
@echo "+ $@"
|
||||||
@test -z "$$(gofmt -s -l . | grep -v vendor/ | tee /dev/stderr)"
|
@test -z "$$(gofmt -s -l *.go | tee /dev/stderr)"
|
||||||
|
|
||||||
vet:
|
vet:
|
||||||
@echo "+ $@"
|
@echo "+ $@"
|
||||||
@go vet .
|
go vet $(PACKAGES)
|
||||||
|
|
||||||
build:
|
build:
|
||||||
@echo "+ $@"
|
@echo "+ $@"
|
||||||
|
|
Загрузка…
Ссылка в новой задаче