diff options
author | Rutger Broekhoff | 2024-01-02 18:56:31 +0100 |
---|---|---|
committer | Rutger Broekhoff | 2024-01-02 18:56:31 +0100 |
commit | 8db41da676ac8368ef7c2549d56239a5ff5eedde (patch) | |
tree | 09c427fd66de2ec1ebffc8342f5fdbb84b0701b5 /vendor/github.com/minio/minio-go/v7/Makefile | |
parent | d4f75fb6db22e57577867445a022227e70958931 (diff) | |
download | gitolfs3-8db41da676ac8368ef7c2549d56239a5ff5eedde.tar.gz gitolfs3-8db41da676ac8368ef7c2549d56239a5ff5eedde.zip |
Delete vendor directory
Diffstat (limited to 'vendor/github.com/minio/minio-go/v7/Makefile')
-rw-r--r-- | vendor/github.com/minio/minio-go/v7/Makefile | 38 |
1 files changed, 0 insertions, 38 deletions
diff --git a/vendor/github.com/minio/minio-go/v7/Makefile b/vendor/github.com/minio/minio-go/v7/Makefile deleted file mode 100644 index 68444aa..0000000 --- a/vendor/github.com/minio/minio-go/v7/Makefile +++ /dev/null | |||
@@ -1,38 +0,0 @@ | |||
1 | GOPATH := $(shell go env GOPATH) | ||
2 | TMPDIR := $(shell mktemp -d) | ||
3 | |||
4 | all: checks | ||
5 | |||
6 | .PHONY: examples docs | ||
7 | |||
8 | checks: lint vet test examples functional-test | ||
9 | |||
10 | lint: | ||
11 | @mkdir -p ${GOPATH}/bin | ||
12 | @echo "Installing golangci-lint" && curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(GOPATH)/bin | ||
13 | @echo "Running $@ check" | ||
14 | @GO111MODULE=on ${GOPATH}/bin/golangci-lint cache clean | ||
15 | @GO111MODULE=on ${GOPATH}/bin/golangci-lint run --timeout=5m --config ./.golangci.yml | ||
16 | |||
17 | vet: | ||
18 | @GO111MODULE=on go vet ./... | ||
19 | @echo "Installing staticcheck" && go install honnef.co/go/tools/cmd/staticcheck@latest | ||
20 | ${GOPATH}/bin/staticcheck -tests=false -checks="all,-ST1000,-ST1003,-ST1016,-ST1020,-ST1021,-ST1022,-ST1023,-ST1005" | ||
21 | |||
22 | test: | ||
23 | @GO111MODULE=on SERVER_ENDPOINT=localhost:9000 ACCESS_KEY=minioadmin SECRET_KEY=minioadmin ENABLE_HTTPS=1 MINT_MODE=full go test -race -v ./... | ||
24 | |||
25 | examples: | ||
26 | @echo "Building s3 examples" | ||
27 | @cd ./examples/s3 && $(foreach v,$(wildcard examples/s3/*.go),go build -mod=mod -o ${TMPDIR}/$(basename $(v)) $(notdir $(v)) || exit 1;) | ||
28 | @echo "Building minio examples" | ||
29 | @cd ./examples/minio && $(foreach v,$(wildcard examples/minio/*.go),go build -mod=mod -o ${TMPDIR}/$(basename $(v)) $(notdir $(v)) || exit 1;) | ||
30 | |||
31 | functional-test: | ||
32 | @GO111MODULE=on go build -race functional_tests.go | ||
33 | @SERVER_ENDPOINT=localhost:9000 ACCESS_KEY=minioadmin SECRET_KEY=minioadmin ENABLE_HTTPS=1 MINT_MODE=full ./functional_tests | ||
34 | |||
35 | clean: | ||
36 | @echo "Cleaning up all the generated files" | ||
37 | @find . -name '*.test' | xargs rm -fv | ||
38 | @find . -name '*~' | xargs rm -fv | ||