-
Notifications
You must be signed in to change notification settings - Fork 5.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
bdd1842
commit b649191
Showing
7 changed files
with
283 additions
and
162 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,40 +1,32 @@ | ||
version: "{build}" | ||
|
||
cache: | ||
- C:\Cache | ||
- C:\gopath\pkg\dep\sources -> Gopkg.lock | ||
- C:\gopath\pkg\mod -> go.sum | ||
- C:\Users\appveyor\AppData\Local\Temp\chocolatey\ -> appveyor.yml | ||
|
||
clone_folder: C:\gopath\src\github.com\influxdata\telegraf | ||
|
||
environment: | ||
GOVERSION: 1.13.5 | ||
GOPATH: C:\gopath | ||
|
||
platform: x64 | ||
|
||
install: | ||
- IF NOT EXIST "C:\Cache" mkdir C:\Cache | ||
- IF NOT EXIST "C:\Cache\go1.13.5.msi" curl -o "C:\Cache\go1.13.5.msi" https://storage.googleapis.com/golang/go1.13.5.windows-amd64.msi | ||
- 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 | ||
- IF EXIST "C:\Go" rmdir /S /Q C:\Go | ||
- msiexec.exe /i "C:\Cache\go1.13.5.msi" /quiet | ||
- 7z x "C:\Cache\gnuwin32-bin.zip" -oC:\GnuWin32 -y | ||
- 7z x "C:\Cache\gnuwin32-dep.zip" -oC:\GnuWin32 -y | ||
- go get -d github.com/golang/dep | ||
- cd "%GOPATH%\src\github.com\golang\dep" | ||
- git checkout -q v0.5.0 | ||
- go install -ldflags="-X main.version=v0.5.0" ./cmd/dep | ||
- choco install golang --version "%GOVERSION%" | ||
- choco install make | ||
- cd "%GOPATH%\src\github.com\influxdata\telegraf" | ||
- git config --system core.longpaths true | ||
- go version | ||
- go env | ||
|
||
build_script: | ||
- cmd: C:\GnuWin32\bin\make | ||
- make deps | ||
- make telegraf | ||
|
||
test_script: | ||
- cmd: C:\GnuWin32\bin\make check | ||
- cmd: C:\GnuWin32\bin\make test-windows | ||
- make check | ||
- make test-windows | ||
|
||
artifacts: | ||
- path: telegraf.exe |
Oops, something went wrong.