From 830ea72799f988b0fb334f9833f37ef147f7ca2c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ludovic=20Court=C3=A8s?= Date: Thu, 22 Oct 2020 10:44:11 +0200 Subject: [PATCH] gnu: Add lcov-cobertura. * gnu/packages/code.scm (lcov-cobertura): New variable. --- gnu/packages/code.scm | 25 ++++++++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) diff --git a/gnu/packages/code.scm b/gnu/packages/code.scm index 6d348308ac..e3e4c6738c 100644 --- a/gnu/packages/code.scm +++ b/gnu/packages/code.scm @@ -1,5 +1,5 @@ ;;; GNU Guix --- Functional package management for GNU -;;; Copyright © 2013, 2015, 2018 Ludovic Courtès +;;; Copyright © 2013, 2015, 2018, 2020 Ludovic Courtès ;;; Copyright © 2015 Andreas Enge ;;; Copyright © 2015, 2018 Ricardo Wurmus ;;; Copyright © 2016, 2017, 2019, 2020 Efraim Flashner @@ -39,6 +39,7 @@ (define-module (gnu packages code) #:use-module ((guix licenses) #:prefix license:) #:use-module (guix build-system gnu) #:use-module (guix build-system cmake) + #:use-module (guix build-system python) #:use-module (guix build-system trivial) #:use-module (gnu packages) #:use-module (gnu packages autogen) @@ -518,6 +519,28 @@ (define-public lcov functionality such as HTML output.") (license license:gpl2+))) +(define-public lcov-cobertura + (package + (name "python-lcov-cobertura") + (version "1.6") + (source + (origin + (method url-fetch) + (uri (pypi-uri "lcov_cobertura" version)) + (sha256 + (base32 + "02ar6yjazlxq4p64cz9gag08bvakmzjrp147jara9wlnlbc96j8g")))) + (build-system python-build-system) + (home-page "https://eriwen.github.io/lcov-to-cobertura-xml/") + (synopsis "LCOV to Cobertura XML converter") + (description + "The lcov-to-cobertura Python module converts code coverage report files +in the lcov format to the XML format of +@uref{http://cobertura.github.io/cobertura/, Cobertura}, a Java code coverage +tool. It allows continuous integration servers like Jenkins to aggregate +results and determine build stability.") + (license license:asl2.0))) + (define-public kcov (package (name "kcov")