mirror of
https://github.com/prometheus-community/windows_exporter.git
synced 2026-02-28 07:36:37 +00:00
Merge pull request #35 from martinlindhe/promu-appveyor
appveyor: build using promu to embed branch and revision info into binary
This commit is contained in:
@@ -11,10 +11,11 @@ install:
|
|||||||
- go version
|
- go version
|
||||||
- set PATH=%GOPATH%\bin;c:\go\bin;%PATH%
|
- set PATH=%GOPATH%\bin;c:\go\bin;%PATH%
|
||||||
- go get -u github.com/kardianos/govendor
|
- go get -u github.com/kardianos/govendor
|
||||||
|
- go get -u github.com/prometheus/promu
|
||||||
|
|
||||||
build_script:
|
build_script:
|
||||||
- govendor build -v +p
|
|
||||||
- govendor test -v +local
|
- govendor test -v +local
|
||||||
|
- promu build -v .
|
||||||
- ps: |
|
- ps: |
|
||||||
if($env:APPVEYOR_REPO_TAG -eq "True") {
|
if($env:APPVEYOR_REPO_TAG -eq "True") {
|
||||||
# The MSI version is not semver compliant, so just take the numerical parts
|
# The MSI version is not semver compliant, so just take the numerical parts
|
||||||
|
|||||||
Reference in New Issue
Block a user