2016-08-27 10:50:37 +00:00
|
|
|
version: "{build}"
|
|
|
|
|
|
|
|
os: Windows Server 2012 R2
|
|
|
|
|
|
|
|
environment:
|
|
|
|
GOPATH: c:\gopath
|
|
|
|
GOVERSION: 1.7
|
|
|
|
|
2016-08-27 10:52:42 +00:00
|
|
|
clone_folder: c:\gopath\src\github.com\martinlindhe\wmi_exporter
|
|
|
|
|
2016-08-27 10:50:37 +00:00
|
|
|
install:
|
2016-08-27 10:52:42 +00:00
|
|
|
- go version
|
2016-08-27 10:50:37 +00:00
|
|
|
- set PATH=%GOPATH%\bin;c:\go\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
|
|
|
|
- go version
|
|
|
|
- go env
|
2016-09-01 19:10:02 +00:00
|
|
|
- go get -u github.com/kardianos/govendor
|
2016-08-27 10:50:37 +00:00
|
|
|
|
|
|
|
build_script:
|
2016-09-01 19:10:02 +00:00
|
|
|
- govendor build -v +local
|
|
|
|
- govendor test -v +local
|
2016-09-09 22:06:43 +00:00
|
|
|
|
|
|
|
deploy:
|
|
|
|
release: wmi_exporter-v$(appveyor_build_version)
|
|
|
|
description: 'WMI exporter for prometheus'
|
|
|
|
provider: GitHub
|
|
|
|
auth_token:
|
|
|
|
secure: CrXWeTf7qONUOEki5olFfGEUPMLDeHj61koDXV3OVEaLgtACmnVHsKUub9POflda # encrypted token from GitHub
|
|
|
|
draft: false
|
|
|
|
prerelease: false
|
|
|
|
on:
|
|
|
|
branch: master # release from master branch only
|
|
|
|
appveyor_repo_tag: true # deploy on tag push only
|