From nobody Mon Apr 29 03:21:42 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) client-ip=209.132.183.28; envelope-from=libvir-list-bounces@redhat.com; helo=mx1.redhat.com; Authentication-Results: mx.zoho.com; dkim=fail spf=pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; Return-Path: Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by mx.zohomail.com with SMTPS id 1495685737807427.11781141146514; Wed, 24 May 2017 21:15:37 -0700 (PDT) Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id F41D24ACB6; Thu, 25 May 2017 04:15:35 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.21]) by smtp.corp.redhat.com (Postfix) with ESMTPS id CFCBA173A8; Thu, 25 May 2017 04:15:35 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id 724D24A48C; Thu, 25 May 2017 04:15:35 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id v4P4FJKV025694 for ; Thu, 25 May 2017 00:15:19 -0400 Received: by smtp.corp.redhat.com (Postfix) id D58D691755; Thu, 25 May 2017 04:15:19 +0000 (UTC) Received: from mx1.redhat.com (ext-mx05.extmail.prod.ext.phx2.redhat.com [10.5.110.29]) by smtp.corp.redhat.com (Postfix) with ESMTPS id CF6B25DC1F for ; Thu, 25 May 2017 04:15:18 +0000 (UTC) Received: from mail-qk0-f179.google.com (mail-qk0-f179.google.com [209.85.220.179]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 7CD0D3DE3C for ; Thu, 25 May 2017 04:15:16 +0000 (UTC) Received: by mail-qk0-f179.google.com with SMTP id y201so169186420qka.0 for ; Wed, 24 May 2017 21:15:16 -0700 (PDT) Received: from localhost.localdomain ([189.103.224.91]) by smtp.gmail.com with ESMTPSA id d27sm3999579qtc.50.2017.05.24.21.15.11 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 24 May 2017 21:15:15 -0700 (PDT) DMARC-Filter: OpenDMARC Filter v1.3.2 mx1.redhat.com F41D24ACB6 Authentication-Results: ext-mx09.extmail.prod.ext.phx2.redhat.com; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ext-mx09.extmail.prod.ext.phx2.redhat.com; spf=pass smtp.mailfrom=libvir-list-bounces@redhat.com DKIM-Filter: OpenDKIM Filter v2.11.0 mx1.redhat.com F41D24ACB6 Authentication-Results: mx1.redhat.com; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="rstJ5Mco" DMARC-Filter: OpenDMARC Filter v1.3.2 mx1.redhat.com 7CD0D3DE3C Authentication-Results: ext-mx05.extmail.prod.ext.phx2.redhat.com; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: ext-mx05.extmail.prod.ext.phx2.redhat.com; spf=pass smtp.mailfrom=claudioandre.br@gmail.com DKIM-Filter: OpenDKIM Filter v2.11.0 mx1.redhat.com 7CD0D3DE3C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=Du+WJvsOLvsWIuVx2GlL9Aq1HyNnqHdQKKSwcif5sCI=; b=rstJ5Mco7FPzkwHnPeywHrxdNhzoM6DV3dL7dj+xeywyN72wAsQDulARAuJvVHKXzr 4hcqbaMzDjVx+IG6dxOryqZw3eEr3PKVnvV9CaGeyMZBbKM/FsGSlV+Kd+EhefZgIVjp JfPlHDunt6uL31zyk/waDAjZsq815mIt+sw+hdUjQFvrA5kEEwfw8EuvR5Lc3pSFV3ne ya63vGQc1raJQ2/LUaKoxVwXUyGIswKdiTXgOEWMwnZZ4pk3+SPHjpFaoxBBR228q4Te W6TRKWSeUrDi29GEaSn11bN9fAPjsa3mDvf1xckKdXb+gQWi3xTycePLQ9OxbrR1USQc ZLJA== 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:mime-version:content-transfer-encoding; bh=Du+WJvsOLvsWIuVx2GlL9Aq1HyNnqHdQKKSwcif5sCI=; b=fX2uLrbj7VRepNTqDPOfKan7jSHi2QBacGj92ANu2C3yaEDu05LIwYFZbTcOcOm5KZ aW/urZGwBY3jPC5xNUFBzI/JhsKxHPazaPQuE4spoQR8eCpnBnz68yq6iIv4BWAkROog 716y/S133bhXDquEpGrmVGbltvFk1FxC5Ju4t2qJ9jmmlCvmpRdlZiL2O2no+6T6SCQl JFJWJgTpksULYpRnStQ4V2wNHANuI+EC4Hnt9+tTr2n0JVwn0dmEsGOV9aQ0rk+poXbM OcSesSwUqQnCkr2ZQyEKDuMcvnogsaUvjgRF9vHIIzEo4NCXKpnTktGg6o0+T34Fwthw CoDg== X-Gm-Message-State: AODbwcCkVuMXTHTStyQSJf6SKrEkKUsY3lljiyle/6KZiIauag/U28zh /4Zi9XQJp1lXmUq6 X-Received: by 10.55.112.6 with SMTP id l6mr35219348qkc.232.1495685715665; Wed, 24 May 2017 21:15:15 -0700 (PDT) From: claudioandre.br@gmail.com To: libvir-list@redhat.com Date: Thu, 25 May 2017 01:14:36 -0300 Message-Id: <20170525041436.20161-2-claudioandre.br@gmail.com> In-Reply-To: <20170525041436.20161-1-claudioandre.br@gmail.com> References: <20170525041436.20161-1-claudioandre.br@gmail.com> MIME-Version: 1.0 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.29]); Thu, 25 May 2017 04:15:16 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.29]); Thu, 25 May 2017 04:15:16 +0000 (UTC) for IP:'209.85.220.179' DOMAIN:'mail-qk0-f179.google.com' HELO:'mail-qk0-f179.google.com' FROM:'claudioandre.br@gmail.com' RCPT:'' X-RedHat-Spam-Score: 2.27 ** (BAYES_50, DCC_REPUT_00_12, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, RCVD_IN_SORBS_SPAM, RCVD_IN_SORBS_WEB, SPF_PASS) 209.85.220.179 mail-qk0-f179.google.com 209.85.220.179 mail-qk0-f179.google.com X-Scanned-By: MIMEDefang 2.78 on 10.5.110.29 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14 X-loop: libvir-list@redhat.com Cc: =?UTF-8?q?Claudio=20Andr=C3=A9?= Subject: [libvirt] [PATCH 1/1] CI: add code coverage analysis X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.38]); Thu, 25 May 2017 04:15:36 +0000 (UTC) X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZohoMail: RDKM_2 RSF_0 Z_629925259 SPT_0 From: Claudio Andr=C3=A9 It builds the code coverage report and uploads the coverage data to a web s= ervice in order to allow to track libvirt's code coverage over time. --- .travis.yml | 11 ++++++++++- README.md | 1 + 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 266ffff..24b8d6c 100644 --- a/.travis.yml +++ b/.travis.yml @@ -39,6 +39,7 @@ addons: - dnsmasq-base - librbd-dev - w3c-dtd-xhtml + - lcov =20 notifications: irc: @@ -64,7 +65,8 @@ before_install: =20 # the custom PATH is just to pick up OS-X homebrew & its harmless on Linux before_script: - - PATH=3D"/usr/local/opt/gettext/bin:/usr/local/opt/rpcgen/bin:$PATH" ./= autogen.sh + - PATH=3D"/usr/local/opt/gettext/bin:/usr/local/opt/rpcgen/bin:$PATH" ./= autogen.sh "$COVERAGE" + - gem install coveralls-lcov script: - VIR_TEST_DEBUG=3D1 make -j3 && make -j3 syntax-check && make -j3 check =20 @@ -77,9 +79,16 @@ matrix: dist: trusty - compiler: gcc dist: trusty + env: COVERAGE=3D"--enable-test-coverage" - compiler: clang os: osx script: # many unit tests fail & so does syntax-check, so skip for now # one day we must fix it though.... - make -j3 + +after_success: + - 'if [ -n "${COVERAGE}" ]; then + make -j3 cov; + coveralls-lcov --repo-token ${COVERALLS_TOKEN} coverage/libvirt.in= fo; + fi' diff --git a/README.md b/README.md index 1035bcf..021f71b 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,5 @@ [![Build Status](https://travis-ci.org/libvirt/libvirt.svg)](https://travi= s-ci.org/libvirt/libvirt) +[![Coverage Status](https://coveralls.io/repos/github/libvirt/libvirt/badg= e.svg)](https://coveralls.io/github/libvirt/libvirt) =20 Libvirt API for virtualization =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D --=20 2.11.0 -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list