From patchwork Sat Feb 3 18:00:11 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: 126785 Delivered-To: patch@linaro.org Received: by 10.46.124.24 with SMTP id x24csp649720ljc; Sat, 3 Feb 2018 10:02:52 -0800 (PST) X-Google-Smtp-Source: AH8x226LfADCqBIz6ZEQwq1Y9Iv/5SdTodixPNKqqNCBoqk4dG/lDwOBOGxh74nbbE6r/FIcs09h X-Received: by 10.55.214.217 with SMTP id p86mr15779362qkl.252.1517680971900; Sat, 03 Feb 2018 10:02:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517680971; cv=none; d=google.com; s=arc-20160816; b=ogcX0n2iwuS082GVzBlw3QfNvMOuWDndvBi2ePNHdqGvOq9EAxDi7uQ5Qy2Gnz6/xJ I4bHxqETTSwJmec6xawB9W69YXtP5zHgSITE+d/vYheJzZoxWh8OzUJxE4vLENvQGaiH c/pEfOsEtv2y+nqW0wrZOzAnfrR03+5wYzkAIueMwRr8tT0VRuz9thuecW138yWL9Ew+ aj/TuZxTDUpV7gSgN5XvaDv0CvM3/pwrNM9NomwiK6gD9/8RletdNJ/0j54NuICeFgur bInig+3Wk0AKJrX9YvWBUfbexCnMu5XzhhcydkJLpSP2vusIZZUKb4X2vAKPC3wxOXqY zFLQ== 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=58+25lxfGKJmTWUy566aI40krOeef/SzrwAfWwlahjs=; b=onlSNwkWxqjBPiChhbkU1ScOq64vXAe0VryIAf3+O/vhTB+fWTCCP6bOdUfh8S1V3t 1S044p5zJP1w4x7HdR9us24y3J/ZnieGk+nZn9jlOaO0knT7NH9l/i0XktENrloAo9A9 1/gEqzt9Ht669DyVosiKBeTa0bLxpQr85Dai/ZIu7MGwMPFhoag6JOD6bOi+UHl4tT3r 723yGlMuY/D+kXlHyWRCiUNdiXDJN7z86XzfEW3rMQy1OvOdWlYnB8Nr2uRvq/0k8kuy eq8yakhMEGsRi+NUFEbWrV6hUybbmArZvVE1iW9u0aXfNW99vqRM2YRym5qgL55HhyK5 MPsQ== 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 j68si4742027qka.214.2018.02.03.10.02.51; Sat, 03 Feb 2018 10:02:51 -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 8C5CE617AA; Sat, 3 Feb 2018 18:02:51 +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 239F6617A1; Sat, 3 Feb 2018 18:00:37 +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 AD4C36097D; Sat, 3 Feb 2018 18:00:23 +0000 (UTC) Received: from forward106o.mail.yandex.net (forward106o.mail.yandex.net [37.140.190.187]) by lists.linaro.org (Postfix) with ESMTPS id 406AF610B9 for ; Sat, 3 Feb 2018 18:00:21 +0000 (UTC) Received: from mxback1g.mail.yandex.net (mxback1g.mail.yandex.net [IPv6:2a02:6b8:0:1472:2741:0:8b7:162]) by forward106o.mail.yandex.net (Yandex) with ESMTP id D0DEB78459F for ; Sat, 3 Feb 2018 21:00:19 +0300 (MSK) Received: from smtp4j.mail.yandex.net (smtp4j.mail.yandex.net [2a02:6b8:0:1619::15:6]) by mxback1g.mail.yandex.net (nwsmtp/Yandex) with ESMTP id YjVnemTfda-0J60wR51; Sat, 03 Feb 2018 21:00:19 +0300 Received: by smtp4j.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id ZBBZY62cnh-0JPCEiK7; Sat, 03 Feb 2018 21:00:19 +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: Sat, 3 Feb 2018 21:00:11 +0300 Message-Id: <1517680813-8247-5-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1517680813-8247-1-git-send-email-odpbot@yandex.ru> References: <1517680813-8247-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 441 Subject: [lng-odp] [PATCH v12 4/6] shippable: generate code coverage reports 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 Signed-off-by: Dmitry Eremin-Solenikov --- /** Email created from pull request 441 (lumag:shippable-ci) ** https://github.com/Linaro/odp/pull/441 ** Patch: https://github.com/Linaro/odp/pull/441.patch ** Base sha: 5865787680be13b47b777e8b0b64646755be41e0 ** Merge commit sha: 66e28548625461f1cb37ac5dcbd6b1d0a8914187 **/ .shippable.yml | 8 ++++++-- scripts/Dockerfile | 1 + scripts/shippable-post.sh | 3 +++ 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/.shippable.yml b/.shippable.yml index d17319e70..045019788 100644 --- a/.shippable.yml +++ b/.shippable.yml @@ -6,7 +6,7 @@ compiler: env: matrix: - - CONF="" + - CONF="--disable-test-perf" # - CONF="--disable-abi-compat" # - CONF="--enable-schedule-sp" # - CONF="--enable-schedule-iquery" @@ -37,7 +37,11 @@ build: - mkdir -p /dev/shm/odp - ./bootstrap - if [ "${CC#clang}" != "${CC}" ] ; then export CXX="${CC/clang/clang++}"; fi - - ./configure --disable-test-perf + - if [ "${CC#clang}" = "${CC}" ] ; then + ./configure $CONF CFLAGS="-O0 --coverage" CXXFLAGS="-O0 --coverage" LDFLAGS="--coverage" ; + else + ./configure $CONF ; + fi - make - sudo env ODP_SHM_DIR=/dev/shm/odp ODP_TEST_OUT_XML=yes make check -k diff --git a/scripts/Dockerfile b/scripts/Dockerfile index 3e1d54dbd..dc4411aa1 100644 --- a/scripts/Dockerfile +++ b/scripts/Dockerfile @@ -10,6 +10,7 @@ RUN sudo apt-get update && sudo apt-get install -yy \ ccache \ clang-3.8 \ gcc-4.8 \ + gcovr \ graphviz \ kmod \ libconfig-dev \ diff --git a/scripts/shippable-post.sh b/scripts/shippable-post.sh index ed5a44168..9eae06262 100755 --- a/scripts/shippable-post.sh +++ b/scripts/shippable-post.sh @@ -7,3 +7,6 @@ for FILE in `find ./test ./platform/ -name "*.xml"`; do xsltproc --novalid cunit-to-junit.xsl "$FILE" > \ "$SHIPPABLE_BUILD_DIR/shippable/testresults/${bname}" done + +mkdir -p shippable/codecoverage +gcovr -r . --xml-pretty --exclude 'test/|.*/test/|example/' -o shippable/codecoverage/coverage.xml