You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
40 lines
1.1 KiB
40 lines
1.1 KiB
# version format
|
|
version: "{build}"
|
|
|
|
# Operating system (build VM template)
|
|
os: Windows Server 2012 R2
|
|
|
|
clone_folder: c:\gopath\src\github.com\minio\minio
|
|
|
|
# environment variables
|
|
environment:
|
|
GOPATH: c:\gopath
|
|
GO15VENDOREXPERIMENT: 1
|
|
UI_ASSETS: ui-assets.go
|
|
UI_ASSETS_ARMOR: ui-assets.asc
|
|
|
|
# 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:
|
|
- curl -o ui-assets.go -L https://dl.minio.io/assets/server/%UI_ASSETS%
|
|
- curl -o ui-assets.asc -L https://dl.minio.io/assets/server/%UI_ASSETS_ARMOR%
|
|
- gpg --batch --no-tty --yes --keyserver pgp.mit.edu --recv-keys F9AAC728
|
|
- gpg --batch --no-tty --verify %UI_ASSETS_ARMOR% %UI_ASSETS%
|
|
- go test .
|
|
- go test -race .
|
|
- go test github.com/minio/minio/pkg...
|
|
- go test -race github.com/minio/minio/pkg...
|
|
- go run buildscripts/gen-ldflags.go > temp.txt
|
|
- set /p BUILD_LDFLAGS=<temp.txt
|
|
- go build -ldflags="%BUILD_LDFLAGS%" -o %GOPATH%\bin\minio.exe
|
|
|
|
# to disable automatic tests
|
|
test: off
|
|
|
|
# to disable deployment
|
|
deploy: off
|
|
|