From 6e4f6fec91bb6bf405778dfde746125bd5c8a4ee Mon Sep 17 00:00:00 2001 From: Michael Krasnyk Date: Wed, 8 Jun 2016 21:45:04 +0200 Subject: [PATCH] Added armhf Travis build --- .travis.yml | 5 +++++ scripts/travis/before_install.armhf.sh | 28 ++++++++++++++++++++++++++ 2 files changed, 33 insertions(+) create mode 100644 scripts/travis/before_install.armhf.sh diff --git a/.travis.yml b/.travis.yml index b631b7eea..90e3d1551 100644 --- a/.travis.yml +++ b/.travis.yml @@ -75,6 +75,10 @@ matrix: compiler: "gcc-5-release-i686" env: TARGET_ARCH='i686' CCOMPILER='gcc-5' CXXCOMPILER='g++-5' BUILD_TYPE='Release' + - os: linux + compiler: "gcc-4.8-release-armhf" + env: TARGET_ARCH='armhf' CCOMPILER='arm-linux-gnueabihf-gcc-4.8' CXXCOMPILER='arm-linux-gnueabihf-g++-4.8' BUILD_TYPE='Release' + # Disabled because of CI slowness #- os: linux #- compiler: gcc @@ -166,6 +170,7 @@ install: - popd script: + - if [[ $TARGET_ARCH == armhf ]] ; then echo "Skip tests for $TARGET_ARCH" && exit 0 ; fi - echo "travis_fold:start:BENCHMARK" - make -C test/data benchmark - echo "travis_fold:end:BENCHMARK" diff --git a/scripts/travis/before_install.armhf.sh b/scripts/travis/before_install.armhf.sh new file mode 100644 index 000000000..b90ca422a --- /dev/null +++ b/scripts/travis/before_install.armhf.sh @@ -0,0 +1,28 @@ +#!/bin/sh -ex + +# workaround for gcc4.8 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55642 +export CXXFLAGS=-Wa,-mimplicit-it=thumb + +UBUNTU_RELEASE=$(lsb_release -sc) + +sudo dpkg --add-architecture armhf + +sudo tee -a /etc/apt/sources.list > /dev/null <