From d2bf34632c52b3b243529d96ad5b0479e051573a Mon Sep 17 00:00:00 2001 From: Alden Torres Date: Sun, 5 Nov 2017 12:14:26 -0500 Subject: [PATCH] fix travis arm CI job --- .travis.yml | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/.travis.yml b/.travis.yml index 802a07811..1da0555c0 100644 --- a/.travis.yml +++ b/.travis.yml @@ -103,7 +103,15 @@ install: echo "using gcc : coverage : ccache g++-5 --coverage : -std=c++11 --coverage ;" >> ~/user-config.jam; fi' - 'if [[ $toolset == "gcc-arm" ]]; then - echo "using gcc : arm : ccache armv8l-linux-gnueabihf-g++ : \"-std=c++11 -fsigned-char -march=armv8-a+crc -mfpu=crypto-neon-fp-armv8 -DTORRENT_FORCE_ARM_CRC32\" -lm ;" >> ~/user-config.jam; + echo "using gcc : arm : ccache armv8l-linux-gnueabihf-g++ : + -std=c++11 + -fsigned-char + -march=armv8-a+crc + -mfpu=crypto-neon-fp-armv8 + -DTORRENT_FORCE_ARM_CRC32 + -lm + -static-libstdc++ + -static-libgcc ;" >> ~/user-config.jam; fi;' - 'echo "using darwin : : ccache clang++ : -std=c++11 ;" >> ~/user-config.jam' - 'echo "using python : 2.7 ;" >> ~/user-config.jam' @@ -131,10 +139,11 @@ install: wget -O boost.zip http://pilotfiber.dl.sourceforge.net/project/boost/boost/1.55.0/boost_1_55_0.zip; unzip -qq boost.zip; export BOOST_ROOT=$PWD/boost_1_55_0; - travis_retry sudo apt-get install -y qemu-user-static debootstrap; - travis_retry sudo debootstrap --variant=minbase --arch armhf --foreign --include=build-essential testing rootfs; + travis_retry sudo apt-get install -y qemu-user-static; + wget -O ubuntu-base.tar.gz http://cdimage.ubuntu.com/ubuntu-base/releases/14.04/release/ubuntu-base-14.04.5-base-armhf.tar.gz; + sudo mkdir rootfs; + sudo tar xf ubuntu-base.tar.gz -C rootfs; sudo cp /usr/bin/qemu-arm-static rootfs/usr/bin/; - sudo chroot rootfs /debootstrap/debootstrap --second-stage; sudo chroot rootfs mount -t proc none /proc; cd ..; fi'