Adding cache to test (#1426)

Signed-off-by: Daniel Valdivia <18384552+dvaldivia@users.noreply.github.com>
This commit is contained in:
Daniel Valdivia
2022-01-20 19:31:16 -08:00
committed by GitHub
parent a926082e4d
commit 7aa8217ee7
2 changed files with 63 additions and 1 deletions

View File

@@ -67,7 +67,51 @@ __init__() {
export GOPATH=/tmp/gopath
export PATH=${PATH}:${GOPATH}/bin
go install github.com/minio/mc@latest
ARCH="`uname -m`"
case $ARCH in
'i386')
ARCH='amd64'
alias ls='ls --color=auto'
;;
'x86_64')
ARCH='amd64'
alias ls='ls -G'
;;
'arm')
ARCH='arm64'
;;
*) ;;
esac
echo $ARCH
OS="`uname`"
case $OS in
'Linux')
OS='linux'
alias ls='ls --color=auto'
;;
'FreeBSD')
OS='freebsd'
alias ls='ls -G'
;;
'WindowsNT')
OS='windows'
;;
'Darwin')
OS='darwin'
;;
'SunOS')
OS='solaris'
;;
'AIX') ;;
*) ;;
esac
curl -sLO "https://dl.min.io/client/mc/release/$OS-$ARCH/mc" -o mc
chmod +x mc
mv mc /usr/local/bin
add_alias
}