From patchwork Fri Oct 6 07:00:05 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Github ODP bot X-Patchwork-Id: 115036 Delivered-To: patch@linaro.org Received: by 10.140.22.163 with SMTP id 32csp1447101qgn; Fri, 6 Oct 2017 00:01:14 -0700 (PDT) X-Google-Smtp-Source: AOwi7QDiLvwcLDUbLYeoTWYWgQ9rXWpDJfq99zoiSgehxVe3jSHOv8ZOY740SP5uc741niJKqssT X-Received: by 10.237.34.24 with SMTP id n24mr1492001qtc.218.1507273274663; Fri, 06 Oct 2017 00:01:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1507273274; cv=none; d=google.com; s=arc-20160816; b=Rc2SNPMmvVvUFFCrmbf3KgT1qgWRbKUEnLRQqlxQrOA0RiCBvjCwhfA5QfNkdjTKoC 80KQ9Bu00Frt5EidRfpfIljxPybJ7BeJTmdsgDWfflDbYhz9/uD3fv+EfnBThjY3gm0/ N7M4OmRnDjkcRtbplBdG8DsJr5L/A1eX2/xOwrYwzBnWt1aeXXL3JJFu1TdzojySC4m/ axJ5guLv0HhtKmz1ejF5Zt8Ls3RpqHWc1S12noUQn8Qvjxc64kHHxJRwAoQisP+Dbh3P im8D9lra4+d4VFOZGFsIuU5FQ5hCthv27NkfnNIMQAmbJe8e1olylfKJMFQsBA3LGO1q gBpA== 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=UdMz+kiVWoDtAQxD5MkVqECXAq2BAINRF+BUOx7dnUI=; b=lpOvWWkgdGLK9APah3pG8xkz3rQ77jhaqgUb1ab/3RCwGAaWoyZB/vQD2LFbA5s63e C3BKO6tLekz1B4sjRC0lMpXhn0m2ZXWxnrevqg9TpiAgHwidkFCoK9V2xbpiYeU/1d0b AMgvuAdraz9UcMCHRZI8HtzfWmVz68h3L9J9p1TzLHO8xWqKjp3JvFDWN6XZDpur1iMA LivdfzzdVusTqaP9h2kXAD/k0VcB3qbOIksMFXrsmERZ2ldx4rTgQ3BAXJir31VGfIbk G8W+4SXuBLUWyWhPxlOqlDfijTZ8TyfSjIZtDdgeeTNTPP/seSfCpkQQ3SzxkBF+1I33 0E8A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.225.227.206 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 (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id 30si734973qta.218.2017.10.06.00.01.14; Fri, 06 Oct 2017 00:01:14 -0700 (PDT) Received-SPF: pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) client-ip=54.225.227.206; Authentication-Results: mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.225.227.206 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 3EB8264493; Fri, 6 Oct 2017 07:01:14 +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 B0BFC60B65; Fri, 6 Oct 2017 07:00:38 +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 BD23F60BE8; Fri, 6 Oct 2017 07:00:28 +0000 (UTC) Received: from forward102p.mail.yandex.net (forward102p.mail.yandex.net [77.88.28.102]) by lists.linaro.org (Postfix) with ESMTPS id BCA6A609FA for ; Fri, 6 Oct 2017 07:00:22 +0000 (UTC) Received: from mxback15g.mail.yandex.net (mxback15g.mail.yandex.net [IPv6:2a02:6b8:0:1472:2741:0:8b7:94]) by forward102p.mail.yandex.net (Yandex) with ESMTP id 797A743044E6 for ; Fri, 6 Oct 2017 10:00:20 +0300 (MSK) Received: from smtp2p.mail.yandex.net (smtp2p.mail.yandex.net [2a02:6b8:0:1472:2741:0:8b6:7]) by mxback15g.mail.yandex.net (nwsmtp/Yandex) with ESMTP id d9PI2d0at4-0Eni17Dw; Fri, 06 Oct 2017 10:00:14 +0300 Received: by smtp2p.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id DIwtbtEvjX-0DTaoMkP; Fri, 06 Oct 2017 10: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: Fri, 6 Oct 2017 10:00:05 +0300 Message-Id: <1507273205-26162-2-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1507273205-26162-1-git-send-email-odpbot@yandex.ru> References: <1507273205-26162-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 222 Subject: [lng-odp] [PATCH v1 1/1] travis: purge dpdk cache on version change 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: Maxim Uvarov changing dpdk version and not clearing build can lead to reference to old cached not supported dpdk version. Needed to remove cache if version was changed. Signed-off-by: Maxim Uvarov --- /** Email created from pull request 222 (muvarov:master_cleandpdkcache) ** https://github.com/Linaro/odp/pull/222 ** Patch: https://github.com/Linaro/odp/pull/222.patch ** Base sha: 52cfe7ba6d2541cf5ee464e46e91b2da5efe1497 ** Merge commit sha: 339368ff7c41624b68e00933702feef644d40ae6 **/ .travis.yml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 5069ddff6..e165a0f9d 100644 --- a/.travis.yml +++ b/.travis.yml @@ -149,11 +149,17 @@ install: fi - gem install asciidoctor -# DPDK pktio. Note that cache must be purged if dpdk version changes. + # DPDK pktio. Note that cache must be purged if dpdk version changes. + - DPDK_VERS="17.02" + - | + CACHED_DPDK_VERS=`fgrep Version dpdk/pkg/dpdk.spec | cut -d " " -f 2` + if [ "${CACHED_DPDK_VERS}" != "${DPDK_VERS}" ]; then + rm -rf dpdk + fi - TARGET=${TARGET:-"x86_64-native-linuxapp-gcc"} - | if [ -z "$CROSS_ARCH" -a ! -f "dpdk/${TARGET}/lib/libdpdk.a" ]; then - git -c advice.detachedHead=false clone -q --depth=1 --single-branch --branch=v17.02 http://dpdk.org/git/dpdk dpdk + git -c advice.detachedHead=false clone -q --depth=1 --single-branch --branch=v${DPDK_VERS} http://dpdk.org/git/dpdk dpdk pushd dpdk git log --oneline --decorate make config T=${TARGET} O=${TARGET}