|
|
|
@ -1,7 +1,7 @@ |
|
|
|
|
#GOPATH := $(CURDIR)/tmp/gopath
|
|
|
|
|
MAKE_OPTIONS := -s
|
|
|
|
|
|
|
|
|
|
all: getdeps test install |
|
|
|
|
all: getdeps cover install |
|
|
|
|
|
|
|
|
|
getdeps: |
|
|
|
|
@go get -u github.com/tools/godep && echo "Installing godep"
|
|
|
|
@ -13,9 +13,9 @@ build-erasure: |
|
|
|
|
build-signify: |
|
|
|
|
@cd pkgs/signify && ${MAKE} ${MAKE_OPTIONS}
|
|
|
|
|
|
|
|
|
|
test: build-erasure build-signify |
|
|
|
|
godep go test -race -coverprofile=cover.out github.com/minio-io/minio/pkgs/storage
|
|
|
|
|
godep go test -race -coverprofile=cover.out github.com/minio-io/minio/pkgs/gateway
|
|
|
|
|
cover: build-erasure build-signify |
|
|
|
|
@godep go test -race -coverprofile=cover.out github.com/minio-io/minio/pkgs/storage
|
|
|
|
|
@godep go test -race -coverprofile=cover.out github.com/minio-io/minio/pkgs/gateway
|
|
|
|
|
|
|
|
|
|
install: build-erasure |
|
|
|
|
@godep go install github.com/minio-io/minio/cmd/erasure-demo && echo "Installed erasure-demo into ${GOPATH}/bin"
|
|
|
|
@ -31,6 +31,3 @@ env: |
|
|
|
|
|
|
|
|
|
run: all |
|
|
|
|
minio gateway
|
|
|
|
|
|
|
|
|
|
cover: test |
|
|
|
|
go tool cover -html=cover.out
|
|
|
|
|