Fix promu build

This commit is contained in:
Calle Pettersson
2017-09-08 10:11:31 +02:00
committed by Calle Pettersson
parent 94caf8ee61
commit caf8742dcd
3 changed files with 4 additions and 2 deletions

View File

@@ -1,6 +1,8 @@
repository: repository:
path: github.com/martinlindhe/wmi_exporter path: github.com/martinlindhe/wmi_exporter
build: build:
binaries:
- name: wmi_exporter
ldflags: | ldflags: |
-X {{repoPath}}/vendor/github.com/prometheus/common/version.Version={{.Version}} -X {{repoPath}}/vendor/github.com/prometheus/common/version.Version={{.Version}}
-X {{repoPath}}/vendor/github.com/prometheus/common/version.Revision={{.Revision}} -X {{repoPath}}/vendor/github.com/prometheus/common/version.Revision={{.Revision}}

View File

@@ -2,4 +2,4 @@ fmt:
gofmt -l -w -s . gofmt -l -w -s .
build: build:
promu build -v . promu build -v

View File

@@ -22,7 +22,7 @@ install:
build_script: build_script:
- ps: gitversion /output json /showvariable FullSemVer | Set-Content VERSION -PassThru - ps: gitversion /output json /showvariable FullSemVer | Set-Content VERSION -PassThru
- govendor test -v +local - govendor test -v +local
- promu build -v . - promu build -v
- ps: | - ps: |
$ErrorActionPreference = "Stop" $ErrorActionPreference = "Stop"
if($env:APPVEYOR_REPO_TAG -eq "True") { if($env:APPVEYOR_REPO_TAG -eq "True") {