From 3d06e6083a63e4b06ace38ae9ede61c1e533c1f6 Mon Sep 17 00:00:00 2001 From: Alexander Neumann Date: Tue, 26 Jan 2016 23:52:39 +0100 Subject: [PATCH] CI: download minio for the correct os and arch --- Dockerfile | 2 +- run_integration_tests.go | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 7b5a94cd4..5e6f91638 100644 --- a/Dockerfile +++ b/Dockerfile @@ -48,7 +48,7 @@ RUN go get github.com/mattn/goveralls RUN go get github.com/mitchellh/gox RUN go get github.com/pierrre/gotestcover RUN mkdir $HOME/bin \ - && wget -q -O $HOME/bin/minio https://dl.minio.io/server/minio/release/linux-amd64/minio \ + && wget -q -O $HOME/bin/minio https://dl.minio.io/server/minio/release/linux-${GOARCH}/minio \ && chmod +x $HOME/bin/minio # set TRAVIS_BUILD_DIR for integration script diff --git a/run_integration_tests.go b/run_integration_tests.go index 0a4c59401..a771e274a 100644 --- a/run_integration_tests.go +++ b/run_integration_tests.go @@ -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