From patchwork Mon Oct 9 14:00:15 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: 115251 Delivered-To: patch@linaro.org Received: by 10.80.163.170 with SMTP id s39csp2425414edb; Mon, 9 Oct 2017 07:13:00 -0700 (PDT) X-Google-Smtp-Source: AOwi7QDiqZrP+SAolz4u9sxSZHwE+yJTTq4YAnBfinNooYrBvKn5JV3fTIamspz8GyKZRsZihEOp X-Received: by 10.36.118.81 with SMTP id z78mr1144195itb.97.1507558380611; Mon, 09 Oct 2017 07:13:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1507558380; cv=none; d=google.com; s=arc-20160816; b=pF8Dik7cuTPlM7Vfgu56G2He8aS1LIMXZQcqe82PUicCvXe4VSZm0i6lcKdY4l0kNs BBbbsFKYoIYHs8aWJDiE/Dhqu6OmX5bF2XPgPeYCuDxRU7pKqg/a/jfXs6pNLweuxs+0 yWJk6GigmtGKMf2e1ziS/47uXNMtZ154NL5Fyiu1q/VMkFwtVmU9Gsi3yTmhNHnxJqD8 MBSBczn9p+mqc93TPiY+yfEexYgmdNucsmNLGW+jWObRk4e9b1cStrSybcWqy7XcRrSQ M8ivCFX6ONfszVmsT7i99MPqQAGzGmgodL95rbGKwND7ZFsLodF77jrFkai/gdZGXsXK G9MQ== 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=4dCbHczRsANDIx/YMnWIi6n7nsVVoUilrjqhnZZHAUs=; b=K49q7Nyo8cRHS1KeS7X0yRpWMaqFffm3zClK8zkLYauT63u4Qj9h1+1AG1/7U1Sq4U FsJ7yH1evDoJTq5kkdtw7ETOX/fjzUeRFxnZjjjYgUu78Zy1D9rKW2tyIwh0UPfwCzfl +/OKCggq/IW/U94eUTjyPOK7gy+K8baCXi4H2gAZZmOJpSoK9B5D/OvL3AFtJPaYZLG7 7QG13F84RCPPWzBSZ1z8OFyYivGc0Kc4OgyHGbfiS5N51Nt0mydnblJ6qeGYvHdet5JD z+gJAHD/fmMJtTiJxqufUb6lBCbM6x4oH0UFiwV5tV5l5cQUbxbH0WgT6zzufvmukUsd Mgbw== 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 189si6366046ioy.392.2017.10.09.07.13.00; Mon, 09 Oct 2017 07:13:00 -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 1CF9C60C1D; Mon, 9 Oct 2017 14:13:00 +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,URIBL_BLOCKED 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 5CDB860C61; Mon, 9 Oct 2017 14:03:15 +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 18F9660C6C; Mon, 9 Oct 2017 14:03:00 +0000 (UTC) Received: from forward101o.mail.yandex.net (forward101o.mail.yandex.net [37.140.190.181]) by lists.linaro.org (Postfix) with ESMTPS id 1F33F6080D for ; Mon, 9 Oct 2017 14:00:58 +0000 (UTC) Received: from mxback13g.mail.yandex.net (mxback13g.mail.yandex.net [IPv6:2a02:6b8:0:1472:2741:0:8b7:92]) by forward101o.mail.yandex.net (Yandex) with ESMTP id 16F521342E1C for ; Mon, 9 Oct 2017 17:00:57 +0300 (MSK) Received: from smtp4o.mail.yandex.net (smtp4o.mail.yandex.net [2a02:6b8:0:1a2d::28]) by mxback13g.mail.yandex.net (nwsmtp/Yandex) with ESMTP id g2121rlzDw-0vvSav7W; Mon, 09 Oct 2017 17:00:57 +0300 Received: by smtp4o.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id wSTIYzb9Br-0td8QEeN; Mon, 09 Oct 2017 17:00:55 +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: Mon, 9 Oct 2017 17:00:15 +0300 Message-Id: <1507557617-32018-12-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1507557617-32018-1-git-send-email-odpbot@yandex.ru> References: <1507557617-32018-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 188 Subject: [lng-odp] [PATCH v3 11/13] 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 Reviewed-by: Bill Fischofer Reviewed-by: Dmitry Eremin-Solenikov --- /** Email created from pull request 188 (WonderfulVoid:master) ** https://github.com/Linaro/odp/pull/188 ** Patch: https://github.com/Linaro/odp/pull/188.patch ** Base sha: c16af6486eea240609f334b1bdc81a11404275de ** Merge commit sha: 4ad1d0615a4dcd74d4e9703090149eec1a58d7d2 **/ .travis.yml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 990579202..7fcd98e2f 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}