2016-04-06 23:54:23 +00:00
|
|
|
version: 0.{build}
|
|
|
|
pull_requests:
|
|
|
|
do_not_increment_build_number: true
|
|
|
|
branches:
|
|
|
|
only:
|
|
|
|
- master
|
|
|
|
|
|
|
|
os: Windows Server 2012 R2
|
|
|
|
|
|
|
|
# Custom clone folder (variables are not expanded here).
|
|
|
|
clone_folder: c:\gopath\src\github.com\influxdata\influxdb
|
|
|
|
|
|
|
|
# Environment variables
|
|
|
|
environment:
|
2018-07-17 16:34:29 +00:00
|
|
|
GOROOT: C:\go110
|
2016-04-06 23:54:23 +00:00
|
|
|
GOPATH: C:\gopath
|
|
|
|
|
|
|
|
# Scripts that run after cloning repository
|
|
|
|
install:
|
|
|
|
- set PATH=%GOROOT%\bin;%GOPATH%\bin;%PATH%
|
2016-09-19 11:58:21 +00:00
|
|
|
- rmdir c:\go /s /q
|
2016-04-06 23:54:23 +00:00
|
|
|
- echo %PATH%
|
|
|
|
- echo %GOPATH%
|
|
|
|
- cd C:\gopath\src\github.com\influxdata\influxdb
|
|
|
|
- go version
|
|
|
|
- go env
|
2018-02-06 16:59:02 +00:00
|
|
|
- go get github.com/golang/dep/cmd/dep
|
2016-04-06 23:54:23 +00:00
|
|
|
- cd C:\gopath\src\github.com\influxdata\influxdb
|
2018-02-06 16:59:02 +00:00
|
|
|
- dep ensure -vendor-only
|
2016-04-06 23:54:23 +00:00
|
|
|
|
2016-09-23 00:20:49 +00:00
|
|
|
# To run your custom scripts instead of automatic MSBuild
|
2016-04-06 23:54:23 +00:00
|
|
|
build_script:
|
|
|
|
- go get -t -v ./...
|
2017-09-22 17:30:38 +00:00
|
|
|
- go test -timeout 15m -v ./...
|
2016-09-23 00:20:49 +00:00
|
|
|
|
2016-04-06 23:54:23 +00:00
|
|
|
# To disable deployment
|
|
|
|
deploy: off
|