version: "{build}" cache: - C:\Cache clone_folder: C:\gopath\src\github.com\influxdata\telegraf environment: GOPATH: C:\gopath platform: x64 install: - IF NOT EXIST "C:\Cache" mkdir C:\Cache - IF NOT EXIST "C:\Cache\go1.9.2.msi" curl -o "C:\Cache\go1.9.2.msi" https://storage.googleapis.com/golang/go1.9.2.windows-amd64.msi - IF EXIST "C:\Go" rmdir /S /Q C:\Go - msiexec.exe /i "C:\Cache\go1.9.2.msi" /quiet - go version - go env build_script: - cmd: go get github.com/sparrc/gdm - cmd: C:\gopath\bin\gdm restore - cmd: go build -i -o telegraf.exe ./cmd/telegraf/telegraf.go test_script: - cmd: go test ./plugins/inputs/ping/... - cmd: go test ./plugins/inputs/win_perf_counters/... - cmd: go test ./plugins/inputs/win_services/... artifacts: - path: telegraf.exe