forked from TrueCloudLab/restic
CI: download minio for the correct os and arch
This commit is contained in:
parent
b64006221c
commit
3d06e6083a
2 changed files with 5 additions and 2 deletions
|
@ -48,7 +48,7 @@ RUN go get github.com/mattn/goveralls
|
||||||
RUN go get github.com/mitchellh/gox
|
RUN go get github.com/mitchellh/gox
|
||||||
RUN go get github.com/pierrre/gotestcover
|
RUN go get github.com/pierrre/gotestcover
|
||||||
RUN mkdir $HOME/bin \
|
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
|
&& chmod +x $HOME/bin/minio
|
||||||
|
|
||||||
# set TRAVIS_BUILD_DIR for integration script
|
# set TRAVIS_BUILD_DIR for integration script
|
||||||
|
|
|
@ -49,7 +49,10 @@ func (env *TravisEnvironment) getMinio() {
|
||||||
os.Exit(10)
|
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 {
|
if err != nil {
|
||||||
msg("downloading minio failed: %v\n", err)
|
msg("downloading minio failed: %v\n", err)
|
||||||
return
|
return
|
||||||
|
|
Loading…
Reference in a new issue