From patchwork Sat Jan 20 23:00:07 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Github ODP bot X-Patchwork-Id: 125261 Delivered-To: patch@linaro.org Received: by 10.46.66.141 with SMTP id h13csp458334ljf; Sat, 20 Jan 2018 15:00:59 -0800 (PST) X-Google-Smtp-Source: AH8x226uA2ZTbRreR8uB4BU1jgbA54Kvy9vVnY5RfccqrlSP859Qi/eGP8DeeqLOT4ka6MFX9e5g X-Received: by 10.55.17.84 with SMTP id b81mr4070356qkh.185.1516489259283; Sat, 20 Jan 2018 15:00:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516489259; cv=none; d=google.com; s=arc-20160816; b=dYXzQBaIRwgRhorSZt2ZXlFxzpgugiN05ntHYp97EqZq557KKax6GJZ95MwRDs+31D Ycb19/SlLh6OJJ355NhqhEiERXXSznBPxE96s0Sl3tnF5/alXI0gB2hKhuCiNH97zIBd xaygNUWDipojqVMZwh+DGdmsOnkeYQ4JWF2KNbsKevm/k3xVIJDa/Py3s04j1DykXcfp LPaGBZcVLPDrb3i/C9LGYZPXyOSoXEAa3bwsUhh9UI+tzlECAXB55f5IfupbkPyo+71o xP64leARL29TnS6CSgjIeEFKkEecLe8PlGWogEi+5wgtOT0sNNcueByRjuRfbY4GbEYf xvcQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:subject:github-pr-num :references:in-reply-to:message-id:date:to:from:delivered-to :arc-authentication-results; bh=s7xmFhaOXzBQpe/I927P73YfRj40AttsZYkOdexbQM0=; b=In58brUgQtOfF6f5aHRNmdFjEY92Nvpk3YaBpenV8k/wthwZjkbZPKlFthwTjUnXsF 7L8jVzcUZ2XcRJb4CtOsx41h9yCwgIdVmwmC0+uyZltNwyzxGiAdwPG3cEn3RwlUZxw3 nU6zC1NeCt7C3Q1BBU6CNvOOXjsS5/Yup7trsK2/hMy4B8gaOCd5Xcs2pw0H3WNimH8Y yszwe9VWVepTPGm+XHQyVa823YLz7ow+dnlspH3s6qgsYPha0GYIQLqtA30QkBRpom1D ai00MuHgY7LyPdzrADipjmIETEMvLXNybnTK7Y35njSG9dRvUC1lUOipYMe/8WOExTph PSkA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.197.127.237 as permitted sender) smtp.mailfrom=lng-odp-bounces@lists.linaro.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=yandex.ru Return-Path: Received: from lists.linaro.org (ec2-54-197-127-237.compute-1.amazonaws.com. [54.197.127.237]) by mx.google.com with ESMTP id j3si398005qkj.304.2018.01.20.15.00.59; Sat, 20 Jan 2018 15:00:59 -0800 (PST) Received-SPF: pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.197.127.237 as permitted sender) client-ip=54.197.127.237; Authentication-Results: mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.197.127.237 as permitted sender) smtp.mailfrom=lng-odp-bounces@lists.linaro.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=yandex.ru Received: by lists.linaro.org (Postfix, from userid 109) id EB87161747; Sat, 20 Jan 2018 23:00:58 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on ip-10-142-244-252 X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL autolearn=disabled version=3.4.0 Received: from [127.0.0.1] (localhost [127.0.0.1]) by lists.linaro.org (Postfix) with ESMTP id 1A66D61785; Sat, 20 Jan 2018 23:00:24 +0000 (UTC) X-Original-To: lng-odp@lists.linaro.org Delivered-To: lng-odp@lists.linaro.org Received: by lists.linaro.org (Postfix, from userid 109) id A18AC60949; Sat, 20 Jan 2018 23:00:16 +0000 (UTC) Received: from forward103j.mail.yandex.net (forward103j.mail.yandex.net [5.45.198.246]) by lists.linaro.org (Postfix) with ESMTPS id 0AE9560949 for ; Sat, 20 Jan 2018 23:00:15 +0000 (UTC) Received: from mxback4g.mail.yandex.net (mxback4g.mail.yandex.net [IPv6:2a02:6b8:0:1472:2741:0:8b7:165]) by forward103j.mail.yandex.net (Yandex) with ESMTP id B256234C11EF for ; Sun, 21 Jan 2018 02:00:13 +0300 (MSK) Received: from smtp1j.mail.yandex.net (smtp1j.mail.yandex.net [2a02:6b8:0:801::ab]) by mxback4g.mail.yandex.net (nwsmtp/Yandex) with ESMTP id p5LilSiELi-0D2mwEc3; Sun, 21 Jan 2018 02:00:13 +0300 Received: by smtp1j.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id f7FG0x0HdC-0Du0xkOm; Sun, 21 Jan 2018 02:00:13 +0300 (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (Client certificate not present) From: Github ODP bot To: lng-odp@lists.linaro.org Date: Sun, 21 Jan 2018 02:00:07 +0300 Message-Id: <1516489211-26156-2-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1516489211-26156-1-git-send-email-odpbot@yandex.ru> References: <1516489211-26156-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 412 Subject: [lng-odp] [PATCH v4 1/5] travis: stop early when installation of cross-packages has failed X-BeenThere: lng-odp@lists.linaro.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: "The OpenDataPlane \(ODP\) List" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: lng-odp-bounces@lists.linaro.org Sender: "lng-odp" From: Dmitry Eremin-Solenikov If installation of cross-packages fails, installation will abort with obscure error message. Stop early providing more precise "error" point. Signed-off-by: Dmitry Eremin-Solenikov --- /** 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 | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.travis.yml b/.travis.yml index b614668c5..39dbb5865 100644 --- a/.travis.yml +++ b/.travis.yml @@ -97,15 +97,15 @@ 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 ; + sudo -E apt-get -y --no-install-suggests --no-install-recommends --force-yes install build-essential || exit 1; if [ "$CROSS_ARCH" = "i386" ] ; then - sudo -E apt-get -y --no-install-suggests --no-install-recommends --force-yes install g++-multilib ; + sudo -E apt-get -y --no-install-suggests --no-install-recommends --force-yes install g++-multilib || exit 1; else - sudo -E apt-get -y --no-install-suggests --no-install-recommends --force-yes install g++-"$CROSS_GNU_TYPE" ; + sudo -E apt-get -y --no-install-suggests --no-install-recommends --force-yes install g++-"$CROSS_GNU_TYPE" || exit 1; 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" ; - [ "$CROSS_ARCH" = "armhf" ] || sudo -E apt-get -y --no-install-suggests --no-install-recommends --force-yes install libnuma-dev:"$CROSS_ARCH"; + 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; export PKG_CONFIG_PATH=/usr/lib/${CROSS_MULTIARCH}/pkgconfig:/usr/${CROSS_MULTIARCH}/lib/pkgconfig ; fi - if [ "${CC#clang}" != "${CC}" ] ;