From patchwork Thu Feb 2 14:41:28 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxim Uvarov X-Patchwork-Id: 93106 Delivered-To: patch@linaro.org Received: by 10.182.3.34 with SMTP id 2csp127853obz; Thu, 2 Feb 2017 06:42:30 -0800 (PST) X-Received: by 10.55.104.79 with SMTP id d76mr9423480qkc.114.1486046550361; Thu, 02 Feb 2017 06:42:30 -0800 (PST) Return-Path: Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id 86si16935474qku.249.2017.02.02.06.42.29; Thu, 02 Feb 2017 06:42:30 -0800 (PST) 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: by lists.linaro.org (Postfix, from userid 109) id 9FDE060926; Thu, 2 Feb 2017 14:42:29 +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, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, 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 ADDCD60EAC; Thu, 2 Feb 2017 14:41:53 +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 62FA860879; Thu, 2 Feb 2017 14:41:50 +0000 (UTC) Received: from mail-lf0-f50.google.com (mail-lf0-f50.google.com [209.85.215.50]) by lists.linaro.org (Postfix) with ESMTPS id EC55360689 for ; Thu, 2 Feb 2017 14:41:48 +0000 (UTC) Received: by mail-lf0-f50.google.com with SMTP id n124so9622504lfd.2 for ; Thu, 02 Feb 2017 06:41:48 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=MUUS2X38K6HHUZoBJrAFruJup9mD10N4vVPxxQuq2gw=; b=iSgumIYdKn/kXVOHguJjfYWf6DkTe7Agi1Bdha6Ok2C2cWnMQhIut0VQxwtsrdNjtm B3d6L259FZEniH7yvuH/+MXDbdruhGh+8nKCneKfLjeyNDm7iqcvFk13mpq5xdvIJZBS H1Jx0eB1b2NzXXG9WCpMa/67He8W4D3+r+ZlfX2jXC9zXFYec4EQ70NAWTnUqDSeixL5 Vn2q84daqUgxzKPsmDfR5EoofUK9ejtZlycDZ4tOfZPMXZ4KvxrHDtjUEldrJH5zvy8V N6gz5ThOVY0hEytKsRh7/SBB1gPfY8qXQKas/3SsHwFghXKucWd+83ifmtWeh5fdjZ6T IGcw== X-Gm-Message-State: AIkVDXJi/jhn2BVmQjSLDR7GFjW/bRXwhChQ9+VTtBY9H4O62nr8k9et60QRcO2B5wrxp9WdXEQ= X-Received: by 10.25.136.8 with SMTP id k8mr2604703lfd.47.1486046507378; Thu, 02 Feb 2017 06:41:47 -0800 (PST) Received: from localhost.localdomain (ppp109-252-7-40.pppoe.spdop.ru. [109.252.7.40]) by smtp.gmail.com with ESMTPSA id 25sm6685010ljo.43.2017.02.02.06.41.46 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 02 Feb 2017 06:41:46 -0800 (PST) From: Maxim Uvarov To: lng-odp@lists.linaro.org Date: Thu, 2 Feb 2017 17:41:28 +0300 Message-Id: <20170202144130.24097-2-maxim.uvarov@linaro.org> X-Mailer: git-send-email 2.11.0.295.gd7dffce In-Reply-To: <20170202144130.24097-1-maxim.uvarov@linaro.org> References: <20170202144130.24097-1-maxim.uvarov@linaro.org> Subject: [lng-odp] [PATCH 1/2] codecov: add code coverage intergated to github 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" Signed-off-by: Maxim Uvarov --- .travis.yml | 51 +++++++++++++++++++++++++++++++++++++++++++-------- 1 file changed, 43 insertions(+), 8 deletions(-) -- 2.11.0.295.gd7dffce diff --git a/.travis.yml b/.travis.yml index 03e61b18..9e474da2 100644 --- a/.travis.yml +++ b/.travis.yml @@ -7,21 +7,53 @@ # pushing to github/coverity_scan will also launch a static analysis # See https://scan.coverity.com/travis_ci +language: c +sudo: required +addons: + apt: + sources: + # add PPAs with more up-to-date toolchains + - ubuntu-toolchain-r-test + - llvm-toolchain-precise-3.6 + packages: + # install toolchains + - gcc + env: global: # COVERITY_SCAN_TOKEN # ** specific to your project ** - secure: "xxxx" + - CODECOV_TOKEN=8e1c0fd8-62ff-411e-a79f-5839f6662c11 -language: c -compiler: clang -sudo: required +matrix: + include: + - compiler: gcc-4.8 + addons: + apt: + sources: + - ubuntu-toolchain-r-test + - llvm-toolchain-precise-3.8 + packages: + - gcc-4.8 + env: MY_CF="-O0 -coverage" MY_LDF="--coverage" DOCOV=1 + - compiler: clang + addons: + apt: + sources: + - ubuntu-toolchain-r-test + - llvm-toolchain-precise-3.8 + packages: + - clang before_install: + - sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y - sudo apt-get -qq update - sudo apt-get install automake autoconf libtool libssl-dev graphviz mscgen doxygen - sudo apt-get install libpcap-dev linux-headers-`uname -r` + - sudo pip install coverage - gem install asciidoctor + - PATH=${PATH//:\.\/node_modules\/\.bin/} # Install cunit for the validation tests because distro version is too old and fails C99 compile - export CUNIT_VERSION=2.1-3 @@ -47,15 +79,18 @@ before_install: - popd script: - - - ./bootstrap - - ./configure --enable-test-cpp --enable-test-vald --enable-test-helper --enable-test-perf --enable-user-guides --enable-test-perf-proc --enable-test-example --with-dpdk-path=`pwd`/dpdk/${TARGET} - - make check - - git clean -f -d -x && rm -rf dpdk - ./bootstrap - ./configure - make doxygen-doc - make distcheck + - git clean -f -d -x + - ./bootstrap + - ./configure --enable-test-cpp --enable-test-vald --enable-test-helper --enable-test-perf --enable-user-guides --enable-test-perf-proc --enable-test-example --with-dpdk-path=`pwd`/dpdk/${TARGET} CFLAGS="$MY_CF" CXXFLAGS="$MY_CF" LDFLAGS="$MY_LDF" + - make check + - rm -rf dpdk + +after_success: + - if [ -n "$DOCOV" ]; then find . -type f -iname '*.[ch]' -not -path ".git/*" -execdir gcov-4.8 {} \; ; bash <(curl -s https://codecov.io/bash) -X coveragepy; fi addons: coverity_scan: