CI: download minio for the correct os and arch

This commit is contained in:
Alexander Neumann 2016-01-26 23:52:39 +01:00
parent b64006221c
commit 3d06e6083a
2 changed files with 5 additions and 2 deletions

View file

@ -49,7 +49,10 @@ func (env *TravisEnvironment) getMinio() {
os.Exit(10)
}
res, err := http.Get("https://dl.minio.io/server/minio/release/linux-amd64/minio")
url := fmt.Sprintf("https://dl.minio.io/server/minio/release/%s-%s/minio",
runtime.GOOS, runtime.GOARCH)
msg("downloading %v\n", url)
res, err := http.Get(url)
if err != nil {
msg("downloading minio failed: %v\n", err)
return