This vendorization uses the new set of API changes which we are brought in. With this new change Bucket regions are handled transparently without any region lookup or local map. This makes overall code seamless and easy to use. Fixes - #1541 (cp corruption while uploading large files to s3) Fixes - #1542 (cp checkCopySyntax failed) Fixes - #1537 (regions will be handled seamelessly now for all buckets) Fixes - #1538 (fixes access control policy for google cloud storage) Fixes - #1547 (session resume completes without copying all the files) Fixes - #1559 (poor network connectivity, causes timing out)
45 lines
1.1 KiB
YAML
45 lines
1.1 KiB
YAML
# version format
|
|
version: "{build}"
|
|
|
|
# Operating system (build VM template)
|
|
os: Windows Server 2012 R2
|
|
|
|
clone_folder: c:\gopath\src\github.com\minio\mc
|
|
|
|
# environment variables
|
|
environment:
|
|
GOPATH: c:\gopath
|
|
GO15VENDOREXPERIMENT: 1
|
|
|
|
# scripts that run after cloning repository
|
|
install:
|
|
- set PATH=%GOPATH%\bin;c:\go\bin;%PATH%
|
|
- go version
|
|
- go env
|
|
- go get -u github.com/golang/lint/golint
|
|
- go get -u golang.org/x/tools/cmd/vet
|
|
- go get -u github.com/fzipp/gocyclo
|
|
- go get -u github.com/remyoudompheng/go-misc/deadcode
|
|
|
|
# to run your custom scripts instead of automatic MSBuild
|
|
build_script:
|
|
- go tool vet -all ./pkg
|
|
- go tool vet -shadow=true ./pkg
|
|
- gofmt -s -l pkg
|
|
- golint .
|
|
- golint github.com/minio/mc/pkg...
|
|
- gocyclo -over 40 pkg
|
|
- deadcode
|
|
- go test -race .
|
|
- go test -race github.com/minio/mc/pkg...
|
|
- go run buildscripts/gen-ldflags.go > temp.txt
|
|
- set /p LDFLAGS=<temp.txt
|
|
- go build -ldflags="%LDFLAGS%" -o %GOPATH%\bin\mc.exe
|
|
- mc version
|
|
|
|
# to disable automatic tests
|
|
test: off
|
|
|
|
# to disable deployment
|
|
deploy: off
|