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:
  #AppVeyor has go 1.6 as default go environment
  GOROOT: C:\go16
  GOPATH: C:\gopath
  GOVERSION: 1.7.1

# Scripts that run after cloning repository
install:
 - set PATH=%GOROOT%\bin;%GOPATH%\bin;%PATH%
 - rmdir c:\go /s /q
 - appveyor DownloadFile https://storage.googleapis.com/golang/go%GOVERSION%.windows-amd64.zip
 - 7z x go%GOVERSION%.windows-amd64.zip -y -oC:\ > NUL
 - echo %PATH%
 - echo %GOPATH%
 - cd C:\gopath\src\github.com\influxdata\influxdb
 - go version
 - go env
 - go get github.com/sparrc/gdm
 - cd C:\gopath\src\github.com\influxdata\influxdb
 - gdm restore

# To run your custom scripts instead of automatic MSBuild
build_script:
 - go get -t -v ./...
 - go test -race -v ./...

# To disable deployment
deploy: off

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:
  GOROOT: C:\go17
  GOPATH: C:\gopath

# Scripts that run after cloning repository
install:
 - set PATH=%GOROOT%\bin;%GOPATH%\bin;%PATH%
 - rmdir c:\go /s /q
 - echo %PATH%
 - echo %GOPATH%
 - cd C:\gopath\src\github.com\influxdata\influxdb
 - go version
 - go env
 - go get github.com/sparrc/gdm
 - cd C:\gopath\src\github.com\influxdata\influxdb
 - gdm restore

# To run your custom scripts instead of automatic MSBuild
build_script:
 - go get -t -v ./...
 - go test -race -v ./...

# To disable deployment
deploy: off

Use built-in Go 1.7 in Appveyor
Use built-in Go 1.7 in Appveyor

See available versions of Go at
https://www.appveyor.com/docs/installed-software/#go
