2017-07-31 23:12:09 +00:00
|
|
|
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
|
2018-10-18 22:45:18 +00:00
|
|
|
- IF NOT EXIST "C:\Cache\go1.10.4.msi" curl -o "C:\Cache\go1.10.4.msi" https://storage.googleapis.com/golang/go1.10.4.windows-amd64.msi
|
2018-02-02 20:25:59 +00:00
|
|
|
- IF NOT EXIST "C:\Cache\gnuwin32-bin.zip" curl -o "C:\Cache\gnuwin32-bin.zip" https://dl.influxdata.com/telegraf/ci/make-3.81-bin.zip
|
|
|
|
- IF NOT EXIST "C:\Cache\gnuwin32-dep.zip" curl -o "C:\Cache\gnuwin32-dep.zip" https://dl.influxdata.com/telegraf/ci/make-3.81-dep.zip
|
2017-07-31 23:12:09 +00:00
|
|
|
- IF EXIST "C:\Go" rmdir /S /Q C:\Go
|
2018-10-18 22:45:18 +00:00
|
|
|
- msiexec.exe /i "C:\Cache\go1.10.4.msi" /quiet
|
2018-02-02 20:25:59 +00:00
|
|
|
- 7z x "C:\Cache\gnuwin32-bin.zip" -oC:\GnuWin32 -y
|
|
|
|
- 7z x "C:\Cache\gnuwin32-dep.zip" -oC:\GnuWin32 -y
|
2018-07-24 21:57:24 +00:00
|
|
|
- go get -d github.com/golang/dep
|
|
|
|
- cd "%GOPATH%\src\github.com\golang\dep"
|
2018-08-14 21:55:38 +00:00
|
|
|
- git checkout -q v0.5.0
|
|
|
|
- go install -ldflags="-X main.version=v0.5.0" ./cmd/dep
|
2018-07-24 21:57:24 +00:00
|
|
|
- cd "%GOPATH%\src\github.com\influxdata\telegraf"
|
|
|
|
- git config --system core.longpaths true
|
2017-07-31 23:12:09 +00:00
|
|
|
- go version
|
|
|
|
- go env
|
|
|
|
|
|
|
|
build_script:
|
2018-07-24 21:57:24 +00:00
|
|
|
- cmd: C:\GnuWin32\bin\make
|
2017-07-31 23:12:09 +00:00
|
|
|
|
|
|
|
test_script:
|
2018-07-24 21:57:24 +00:00
|
|
|
- cmd: C:\GnuWin32\bin\make check
|
2018-02-02 20:25:59 +00:00
|
|
|
- cmd: C:\GnuWin32\bin\make test-windows
|
2017-07-31 23:12:09 +00:00
|
|
|
|
|
|
|
artifacts:
|
|
|
|
- path: telegraf.exe
|