github.com/minio/minio-go/v6@v6.0.57/Makefile (about)

     1  all: checks
     2  
     3  .PHONY: examples docs
     4  
     5  checks: diff vet test examples functional-test
     6  
     7  diff:
     8  	@curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b . v1.21.0
     9  	@./golangci-lint run --timeout=5m --config ./.golangci.yml
    10  
    11  vet:
    12  	@GO111MODULE=on go vet ./...
    13  
    14  test:
    15  	@GO111MODULE=on SERVER_ENDPOINT=localhost:9000 ACCESS_KEY=minio SECRET_KEY=minio123 ENABLE_HTTPS=1 MINT_MODE=full go test -race -v ./...
    16  
    17  examples:
    18  	@mkdir -p /tmp/examples && for i in $(echo examples/s3/*); do go build -o /tmp/examples/$(basename ${i:0:-3}) ${i}; done
    19  
    20  functional-test:
    21  	@GO111MODULE=on SERVER_ENDPOINT=localhost:9000 ACCESS_KEY=minio SECRET_KEY=minio123 ENABLE_HTTPS=1 MINT_MODE=full go run functional_tests.go
    22  
    23  clean:
    24  	@echo "Cleaning up all the generated files"
    25  	@find . -name '*.test' | xargs rm -fv
    26  	@find . -name '*~' | xargs rm -fv