1# version format
2version: "{build}"
3
4# Operating system (build VM template)
5os: Windows Server 2012 R2
6
7clone_folder: c:\gopath\src\github.com\minio\minio-go
8
9# environment variables
10environment:
11  GOPATH: c:\gopath
12  GO15VENDOREXPERIMENT: 1
13
14# scripts that run after cloning repository
15install:
16  - set PATH=%GOPATH%\bin;c:\go\bin;%PATH%
17  - go version
18  - go env
19  - go get -u golang.org/x/lint/golint
20  - go get -u github.com/remyoudompheng/go-misc/deadcode
21  - go get -u github.com/gordonklaus/ineffassign
22  - go get -u golang.org/x/crypto/argon2
23  - go get -t ./...
24
25# to run your custom scripts instead of automatic MSBuild
26build_script:
27  - go vet ./...
28  - gofmt -s -l .
29  - golint -set_exit_status github.com/minio/minio-go...
30  - deadcode
31  - ineffassign .
32  - go test -short -v
33  - go test -short -race -v
34
35# to disable automatic tests
36test: off
37
38# to disable deployment
39deploy: off
40