docker: second --ldflags was overriding the first --ldflags option

This commit is contained in:
Krishna Srinivas
2015-11-06 23:39:26 -08:00
parent 03f185db5f
commit f77851bee0
5 changed files with 20 additions and 9 deletions
+4 -3
View File
@@ -26,9 +26,10 @@ build_script:
- go test -race .
- go test github.com/minio/minio/pkg...
- go test -race github.com/minio/minio/pkg...
- go run buildscripts/gen-ldflags.go > temp.txt
- set /p LDFLAGS=<temp.txt
- go build --ldflags %LDFLAGS% -o %GOPATH%\bin\minio.exe
# FIXME: appveyor build has errors related to LDFLAGS
# - go run buildscripts/gen-ldflags.go > temp.txt
# - set /p LDFLAGS=<temp.txt
# - go build --ldflags %LDFLAGS% -o %GOPATH%\bin\minio.exe
# to disable automatic tests
test: off