2016-07-04 17:46:38 -04:00
|
|
|
# version format
|
|
|
|
version: "{build}"
|
|
|
|
|
2015-10-16 14:26:01 -04:00
|
|
|
# Operating system (build VM template)
|
2016-07-04 17:46:38 -04:00
|
|
|
os: Windows Server 2012 R2
|
2016-02-10 19:40:09 -05:00
|
|
|
|
2016-07-04 17:46:38 -04:00
|
|
|
# Platform.
|
2016-02-10 19:40:09 -05:00
|
|
|
platform: x64
|
2015-10-16 14:26:01 -04:00
|
|
|
|
|
|
|
clone_folder: c:\gopath\src\github.com\minio\minio
|
|
|
|
|
|
|
|
# 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
|
|
|
|
|
|
|
|
# to run your custom scripts instead of automatic MSBuild
|
|
|
|
build_script:
|
|
|
|
- go test -race .
|
|
|
|
- go test -race github.com/minio/minio/pkg...
|
2016-08-05 01:01:58 -04:00
|
|
|
- go test -coverprofile=coverage.txt -covermode=atomic
|
2015-11-08 05:56:19 -05:00
|
|
|
- go run buildscripts/gen-ldflags.go > temp.txt
|
|
|
|
- set /p BUILD_LDFLAGS=<temp.txt
|
|
|
|
- go build -ldflags="%BUILD_LDFLAGS%" -o %GOPATH%\bin\minio.exe
|
2015-10-16 14:26:01 -04:00
|
|
|
|
2016-08-04 19:48:50 -04:00
|
|
|
after_test:
|
|
|
|
- bash <(curl -s https://codecov.io/bash)
|
|
|
|
|
2015-10-16 14:26:01 -04:00
|
|
|
# to disable automatic tests
|
|
|
|
test: off
|
|
|
|
|
|
|
|
# to disable deployment
|
|
|
|
deploy: off
|