mirror of
https://github.com/minio/minio.git
synced 2025-11-06 20:33:07 -05:00
Migrate this project to minio micro services code
This commit is contained in:
11
Makefile
11
Makefile
@@ -6,12 +6,13 @@ checkdeps:
|
||||
|
||||
checkgopath:
|
||||
@echo "Checking if project is at ${GOPATH}"
|
||||
@for mcpath in $(echo ${GOPATH} | sed 's/:/\n/g'); do if [ ! -d ${mcpath}/src/github.com/minio/minio ]; then echo "Project not found in ${mcpath}, please follow instructions provided at https://github.com/minio/minio/blob/master/CONTRIBUTING.md#setup-your-minio-github-repository" && exit 1; fi done
|
||||
@for miniofspath in $(echo ${GOPATH} | sed 's/:/\n/g'); do if [ ! -d ${mcpath}/src/github.com/minio/minio ]; then echo "Project not found in ${miniofspath}, please follow instructions provided at https://github.com/minio/minio/blob/master/CONTRIBUTING.md#setup-your-minio-github-repository" && exit 1; fi done
|
||||
|
||||
getdeps: checkdeps checkgopath
|
||||
@go get github.com/golang/lint/golint && echo "Installed golint:"
|
||||
@go get golang.org/x/tools/cmd/vet && echo "Installed vet:"
|
||||
@go get github.com/fzipp/gocyclo && echo "Installed gocyclo:"
|
||||
@go get -u github.com/remyoudompheng/go-misc/deadcode && echo "Installed deadcode:"
|
||||
|
||||
verifiers: getdeps vet fmt lint cyclo
|
||||
|
||||
@@ -34,12 +35,11 @@ lint:
|
||||
|
||||
cyclo:
|
||||
@echo "Running $@:"
|
||||
@GO15VENDOREXPERIMENT=1 gocyclo -over 25 *.go
|
||||
@GO15VENDOREXPERIMENT=1 gocyclo -over 25 pkg
|
||||
@GO15VENDOREXPERIMENT=1 gocyclo -over 50 *.go
|
||||
@GO15VENDOREXPERIMENT=1 gocyclo -over 50 pkg
|
||||
|
||||
build: getdeps verifiers
|
||||
@echo "Installing minio:"
|
||||
@GO15VENDOREXPERIMENT=1 go generate ./...
|
||||
@echo "Installing minio:" #@GO15VENDOREXPERIMENT=1 deadcode
|
||||
|
||||
test: build
|
||||
@echo "Running all testing:"
|
||||
@@ -69,4 +69,3 @@ clean:
|
||||
@echo "Cleaning up all the generated files:"
|
||||
@rm -fv cover.out
|
||||
@rm -fv minio
|
||||
@rm -fv pkg/erasure/*.syso
|
||||
|
||||
Reference in New Issue
Block a user