mirror of
https://github.com/rqlite/rqlite.git
synced 2022-10-30 02:37:32 +03:00
Better appveyor build flags (#919)
Set COMMIT and BRANCH information in build
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user