From patchwork Thu Jan 18 23:00:15 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: 125054 Delivered-To: patch@linaro.org Received: by 10.46.66.141 with SMTP id h13csp33421ljf; Thu, 18 Jan 2018 15:01:53 -0800 (PST) X-Google-Smtp-Source: ACJfBos6dzj5ykXP2nR5q8wAV6u3tPZvL5/smzgYqR4tnQhHpqZA+8Rb8lfwR9kqCz8bb10XElec X-Received: by 10.55.103.88 with SMTP id b85mr35588618qkc.182.1516316513195; Thu, 18 Jan 2018 15:01:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516316513; cv=none; d=google.com; s=arc-20160816; b=vTQ4f/HQ5o7wdF3VSRAY9oWfpCk/mR8WjvtxNsjWClB6QFFmu1f3tECxxn8Xi7zsr2 mkHleQZ36KqKDV2c4byy4563dgZjNbzZAhf+KvHJwT3/k1UJ0vnTRwKAe03zR05nWQfx V+K5iRblBoHNrgS44MS7xelvVriaDcu8FVpTvbmdbDV89WIAw81NAgNxkgen0kb50kgh g/jB7siZdRhEnuiqQuKK6jmkkpM6WS+tyhGazjSmOFZANdZ6EO+7G+u/ZnZttfP8j+LA VtMQYuPO3HpDMaEcNBRpIxFgQ0wU5Dkj/2BUyLvCgh+lXV44GCMStfev7L9d4av7tKjn aFFA== 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=ckMcrIKyNjqyAYwlOy1RlNKPAXJqe29WtWgPiqLAO0Q=; b=YQaclHk/3Koou8k8m39nflsCb2maavoHtJLGf+C2URdo1JmkSE7qxzg2vZatB50NwW 8cxM6+KkXc2OiJIgbTtrX/CS3QfzY0lvRM4EoRxwsQoMIszXwXqvj3ygrxsye9lcbFJQ onUkFYUUV3E8dYyR9AXf2Z8UEM7l9+z7jQKnsGO/LyDaDoS4px5/VDFDRZLG7hM5tPWt 7yZxsCBWyldWwhLEZZHirkR+eP/8XPGNzf6VIUCOJSvfsPFDuEi1GAD5GEOEec9kFo0F BN0BeAO8OCF+6pKvYB3g2R+vmK8Vb4d1/B+eJC1Tx9fPltxQn5IIweoiESMs6lexPOJL J6vw== 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 s5si469517qtj.27.2018.01.18.15.01.52; Thu, 18 Jan 2018 15:01:53 -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 DB30961795; Thu, 18 Jan 2018 23:01:52 +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_H2 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 591BB6171B; Thu, 18 Jan 2018 23:01:47 +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 9F6FD6172F; Thu, 18 Jan 2018 23:01:44 +0000 (UTC) Received: from forward101p.mail.yandex.net (forward101p.mail.yandex.net [77.88.28.101]) by lists.linaro.org (Postfix) with ESMTPS id C55D16171B for ; Thu, 18 Jan 2018 23:01:42 +0000 (UTC) Received: from mxback9j.mail.yandex.net (mxback9j.mail.yandex.net [IPv6:2a02:6b8:0:1619::112]) by forward101p.mail.yandex.net (Yandex) with ESMTP id 6FF3B6A83C72 for ; Fri, 19 Jan 2018 02:01:41 +0300 (MSK) Received: from smtp2p.mail.yandex.net (smtp2p.mail.yandex.net [2a02:6b8:0:1472:2741:0:8b6:7]) by mxback9j.mail.yandex.net (nwsmtp/Yandex) with ESMTP id EJ6MHMFmyR-1fX8DGgI; Fri, 19 Jan 2018 02:01:41 +0300 Received: by smtp2p.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id dngx7RWyZH-0xqSEQpo; Fri, 19 Jan 2018 02:00:59 +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: Fri, 19 Jan 2018 02:00:15 +0300 Message-Id: <1516316420-16628-2-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1516316420-16628-1-git-send-email-odpbot@yandex.ru> References: <1516316420-16628-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 402 Subject: [lng-odp] [PATCH v2 1/6] 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 402 (lumag:travis-upd) ** https://github.com/Linaro/odp/pull/402 ** Patch: https://github.com/Linaro/odp/pull/402.patch ** Base sha: 5a4502fc6bc53e6503169da3028f456b64811a0b ** Merge commit sha: 3d02540f1ad3c03edc8b784bf0f92b86d9b756a1 **/ .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}" ] ;