Merge pull request #120 from martinlindhe/promu-binary-name

Add build.binary to promu config
This commit is contained in:
Calle Pettersson
2017-09-08 11:15:37 +02:00
committed by GitHub
3 changed files with 4 additions and 2 deletions

View File

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

View File

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

View File

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