diff options
author | Anthony Green <green@moxielogic.com> | 2019-10-16 16:05:46 -0400 |
---|---|---|
committer | Anthony Green <green@moxielogic.com> | 2019-10-16 16:05:46 -0400 |
commit | 825b2a359468af8bf3570a5a0695e8b805c5446f (patch) | |
tree | a8b937d796986659d0f5422f382d8aa4b037b7e9 /.travis/install.sh | |
parent | d2a4095af68f4530571bc3fa613dd7f5e5b815a3 (diff) | |
download | libffi-825b2a359468af8bf3570a5a0695e8b805c5446f.tar.gz |
Test on arm32v7-linux-gnu, ppc64le-linux-gnu and aarch64-linux-gnu.
Use docker images and qemu to test libffi for non-x86 architectures on
travis-ci.
Use the LIBFFI_TEST_OPTIMIZATION environment variable to
force specific optimization levels at test time.
Diffstat (limited to '.travis/install.sh')
-rwxr-xr-x | .travis/install.sh | 43 |
1 files changed, 29 insertions, 14 deletions
diff --git a/.travis/install.sh b/.travis/install.sh index 76e2554..45a188a 100755 --- a/.travis/install.sh +++ b/.travis/install.sh @@ -2,24 +2,39 @@ set -x if [[ $TRAVIS_OS_NAME != 'linux' ]]; then - brew update + brew update > brew-update.log 2>&1 # fix an issue with libtool on travis by reinstalling it brew uninstall libtool; brew install libtool dejagnu; else + sudo apt-get clean # clear the cache sudo apt-get update - sudo apt-get install dejagnu texinfo sharutils - case "$HOST" in - i386-pc-linux-gnu) - sudo apt-get install gcc-multilib g++-multilib - ;; - moxie-elf) - echo 'deb https://repos.moxielogic.org:7114/MoxieLogic moxiedev main' | sudo tee -a /etc/apt/sources.list - sudo apt-get clean # clear the cache - sudo apt-get update ## -qq - # debug... - curl https://repos.moxielogic.org:7114/MoxieLogic/dists/moxiedev/main/binary-amd64/Packages - sudo apt-get install -y --allow-unauthenticated moxielogic-moxie-elf-gcc moxielogic-moxie-elf-gcc-c++ moxielogic-moxie-elf-gcc-libstdc++ moxielogic-moxie-elf-gdb-sim - ;; + case $HOST in + arm32v7-linux-gnu | aarch64-linux-gnu | ppc64le-linux-gnu | s390x-linux-gnu) + sudo apt-get install qemu-user-static + ;; + i386-pc-linux-gnu) + sudo apt-get install gcc-multilib g++-multilib; + ;; + moxie-elf) + echo 'deb https://repos.moxielogic.org:7114/MoxieLogic moxiedev main' | sudo tee -a /etc/apt/sources.list + sudo apt-get clean # clear the cache + sudo apt-get update ## -qq + # debug... + curl https://repos.moxielogic.org:7114/MoxieLogic/dists/moxiedev/main/binary-amd64/Packages + sudo apt-get update + sudo apt-get install -y --allow-unauthenticated moxielogic-moxie-elf-gcc moxielogic-moxie-elf-gcc-c++ moxielogic-moxie-elf-gcc-libstdc++ moxielogic-moxie-elf-gdb-sim + ;; + i686-w64-mingw32) + sudo apt-get install gcc-mingw-w64-i686 binutils-mingw-w64-i686 wine; + ;; + esac + case $HOST in + arm32v7-linux-gnu | aarch64-linux-gnu | ppc64le-linux-gnu | s390x-linux-gnu) + # don't install host tools + ;; + *) + sudo apt-get install dejagnu texinfo sharutils + ;; esac fi |