[libvirt] [PATCH 1/1] CI: add code coverage analysis

Daniel P. Berrange berrange at redhat.com
Thu May 25 08:21:14 UTC 2017


On Thu, May 25, 2017 at 01:14:36AM -0300, claudioandre.br at gmail.com wrote:
> From: Claudio André <claudioandre.br at gmail.com>
> 
> It builds the code coverage report and uploads the coverage data to a web service 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
>  
>  notifications:
>    irc:
> @@ -64,7 +65,8 @@ before_install:
>  
>  # the custom PATH is just to pick up OS-X homebrew & its harmless on Linux
>  before_script:
> -  - PATH="/usr/local/opt/gettext/bin:/usr/local/opt/rpcgen/bin:$PATH" ./autogen.sh
> +  - PATH="/usr/local/opt/gettext/bin:/usr/local/opt/rpcgen/bin:$PATH" ./autogen.sh "$COVERAGE"
> +  - gem install coveralls-lcov

Does this actually work on OS-X ? The fact that you only enabled
testing on Trusty suggests not, and if so you shouldn't run this
in the common path.


Regards,
Daniel
-- 
|: https://berrange.com      -o-    https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org         -o-            https://fstop138.berrange.com :|
|: https://entangle-photo.org    -o-    https://www.instagram.com/dberrange :|




More information about the libvir-list mailing list