1version: 0.{build}
2pull_requests:
3  do_not_increment_build_number: true
4branches:
5  only:
6  - master
7
8os: Windows Server 2012 R2
9
10# Custom clone folder (variables are not expanded here).
11clone_folder: c:\gopath\src\github.com\influxdata\influxdb
12
13# Environment variables
14environment:
15  GOROOT: C:\go112
16  GOPATH: C:\gopath
17
18# Scripts that run after cloning repository
19install:
20 - set PATH=%GOROOT%\bin;%GOPATH%\bin;%PATH%
21 - rmdir c:\go /s /q
22 - echo %PATH%
23 - echo %GOPATH%
24 - cd C:\gopath\src\github.com\influxdata\influxdb
25 - go version
26 - go env
27 - go get github.com/golang/dep/cmd/dep
28 - cd C:\gopath\src\github.com\influxdata\influxdb
29 - dep ensure -vendor-only
30
31# To run your custom scripts instead of automatic MSBuild
32build_script:
33 - go get -t -v ./...
34 - go test -timeout 15m -v ./...
35
36# To disable deployment
37deploy: off
38