Add a simple makefile

Primarily allowing for testing via docker; and other simple stuff like
fmt

Signed-off-by: Abhishek Lekshmanan <abhishek.lekshmanan@gmail.com>
This commit is contained in:
Abhishek Lekshmanan 2015-05-24 13:43:05 +05:30
parent e38a5a25e0
commit cec4e4d870
1 changed files with 14 additions and 0 deletions

14
Makefile Normal file
View File

@ -0,0 +1,14 @@
DOCKER_CI_IMAGE = go-ceph-ci
build:
go build -v
fmt:
go fmt ./...
test:
go test -v ./...
test-docker: .build-docker
docker run --rm -it -v $(CURDIR):/go/src/github.com/noahdesu/go-ceph $(DOCKER_CI_IMAGE)
.build-docker:
docker build -t $(DOCKER_CI_IMAGE) .
@docker inspect -f '{{.Id}}' $(DOCKER_CI_IMAGE) > .build-docker