From: Dmitry Eremin-Solenikov <dmitry.ereminsoleni...@linaro.org>

To speedup build and to ease debugging in case only several packages are
available, install all packages in single apt-get call.

Signed-off-by: Dmitry Eremin-Solenikov <dmitry.ereminsoleni...@linaro.org>
---
/** Email created from pull request 412 (lumag:travis-upd)
 ** https://github.com/Linaro/odp/pull/412
 ** Patch: https://github.com/Linaro/odp/pull/412.patch
 ** Base sha: 5a4502fc6bc53e6503169da3028f456b64811a0b
 ** Merge commit sha: 15e457a4db3005d5fe8a7847e25657675bcc88ce
 **/
 .travis.yml | 13 ++++++++-----
 1 file changed, 8 insertions(+), 5 deletions(-)

diff --git a/.travis.yml b/.travis.yml
index 39dbb5865..3c884e829 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -97,15 +97,18 @@ before_install:
                   sudo -E apt-add-repository -y "deb http://ports.ubuntu.com 
trusty main" ;
                   sudo -E apt-add-repository -y "deb http://ports.ubuntu.com 
trusty-updates main" ;
                   sudo -E apt-get -y update || true ;
-                  sudo -E apt-get -y --no-install-suggests 
--no-install-recommends --force-yes install build-essential  || exit 1;
+                  PKGS="build-essential libc6-dev:$CROSS_ARCH 
libssl-dev:$CROSS_ARCH zlib1g-dev:$CROSS_ARCH libconfig-dev:$CROSS_ARCH 
libstdc++-4.8-dev:$CROSS_ARCH libpcap0.8-dev:$CROSS_ARCH" ;
                   if [ "$CROSS_ARCH" = "i386" ] ;
                   then
-                        sudo -E apt-get -y --no-install-suggests 
--no-install-recommends --force-yes install g++-multilib || exit 1;
+                        PKGS="$PKGS g++-multilib" ;
                   else
-                        sudo -E apt-get -y --no-install-suggests 
--no-install-recommends --force-yes install g++-"$CROSS_GNU_TYPE" || exit 1;
+                        PKGS="$PKGS g++-$CROSS_GNU_TYPE" ;
                   fi ;
-                  sudo -E apt-get -y --no-install-suggests 
--no-install-recommends --force-yes install libc6-dev:"$CROSS_ARCH" 
libssl-dev:"$CROSS_ARCH" zlib1g-dev:"$CROSS_ARCH" libconfig-dev:"$CROSS_ARCH" 
libstdc++-4.8-dev:"$CROSS_ARCH" libpcap0.8-dev:"$CROSS_ARCH" || exit 1;
-                  [ "$CROSS_ARCH" = "armhf" ] || sudo -E apt-get -y 
--no-install-suggests --no-install-recommends --force-yes install 
libnuma-dev:"$CROSS_ARCH" || exit 1;
+                  if [ "$CROSS_ARCH" != "armhf" ] ;
+                  then
+                        PKGS="$PKGS libnuma-dev:$CROSS_ARCH" ;
+                  fi ;
+                  sudo -E apt-get -y --no-install-suggests 
--no-install-recommends --force-yes install $PKGS || exit 1 ;
                   export 
PKG_CONFIG_PATH=/usr/lib/${CROSS_MULTIARCH}/pkgconfig:/usr/${CROSS_MULTIARCH}/lib/pkgconfig
 ;
           fi
         - if [ "${CC#clang}" != "${CC}" ] ;

Reply via email to