1
0
Fork 0

Better appveyor build flags (#919)

Set COMMIT and BRANCH information in build
master
Philip O'Toole 3 years ago committed by GitHub
parent 506e94705a
commit 0cbff00dc9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -18,10 +18,11 @@ install:
- if %BUILD_ENV%==gnu set MSYS=winsymlinks=lnk
build_script:
- set LINKER_PKG_PATH=github.com/rqlite/rqlite/cmd
- go version
- go get ./...
- go build ./...
- go test ./...
- go install -ldflags="-X %LINKER_PKG_PATH%.Branch=%APPVEYOR_REPO_BRANCH% -X %LINKER_PKG_PATH%.Commit=%APPVEYOR_REPO_COMMIT%" ./...
after_build:
- 7z a rqlite-latest-win64.zip %GOPATH%\bin\rq*.exe

Loading…
Cancel
Save