diff options
author | Anthony Green <green@moxielogic.com> | 2019-11-24 16:52:14 -0500 |
---|---|---|
committer | Anthony Green <green@moxielogic.com> | 2019-11-24 16:52:14 -0500 |
commit | 66022e52ec0409f9170eb0884c6d0bdd048bc04e (patch) | |
tree | 9e2d8de1bd18d3ff5971c844d9e87b85221a0f9e /.travis/install.sh | |
parent | 932e5bb68a603885e4bd9cf1bd5146542f736ccf (diff) | |
download | libffi-66022e52ec0409f9170eb0884c6d0bdd048bc04e.tar.gz |
Fixes for ppc64le and s390x travis testing
Diffstat (limited to '.travis/install.sh')
-rwxr-xr-x | .travis/install.sh | 25 |
1 files changed, 18 insertions, 7 deletions
diff --git a/.travis/install.sh b/.travis/install.sh index eb7f80f..bd168bb 100755 --- a/.travis/install.sh +++ b/.travis/install.sh @@ -9,20 +9,31 @@ if [[ $TRAVIS_OS_NAME != 'linux' ]]; then # Download and extract the rlgl client wget -qO - https://rl.gl/cli/rlgl-darwin-amd64.tgz | \ - tar --strip-components=2 -xvzf - ./rlgl/rlgl + tar --strip-components=2 -xvzf - ./rlgl/rlgl; else - # Download and extract the rlgl client - wget -qO - http://rl.gl/cli/rlgl-linux-amd64.tgz | \ - tar --strip-components=2 -xvzf - ./rlgl/rlgl + case $HOST in + ppc64le-linux-gnu) + wget -qO - https://rl.gl/cli/rlgl-linux-ppc64le.tgz | \ + tar --strip-components=2 -xvzf - ./rlgl/rlgl; + ;; + s390x-linux-gnu) + wget -qO - https://rl.gl/cli/rlgl-linux-s390x.tgz | \ + tar --strip-components=2 -xvzf - ./rlgl/rlgl; + ;; + *) + wget -qO - https://rl.gl/cli/rlgl-linux-amd64.tgz | \ + tar --strip-components=2 -xvzf - ./rlgl/rlgl; + ;; + esac sudo apt-get clean # clear the cache sudo apt-get update case $HOST in - aarch64-linux-gnu | powerpc64le-unknown-linux-gnu | mips64el-linux-gnu | sparc64-linux-gnu) + aarch64-linux-gnu | mips64el-linux-gnu | sparc64-linux-gnu) ;; - alpha-linux-gnu | arm32v7-linux-gnu | m68k-linux-gnu | sh4-linux-gnu | s390x-linux-gnu ) + alpha-linux-gnu | arm32v7-linux-gnu | m68k-linux-gnu | sh4-linux-gnu) sudo apt-get install qemu-user-static ;; hppa-linux-gnu ) @@ -46,7 +57,7 @@ else ;; esac case $HOST in - arm32v7-linux-gnu | aarch64-linux-gnu | ppc64le-linux-gnu | s390x-linux-gnu) + arm32v7-linux-gnu | aarch64-linux-gnu) # don't install host tools ;; *) |