[diffoscope] 01/01: d/rules: export junit-xml style test report when building on jenkins

Mattia Rizzolo mattia at debian.org
Thu May 18 02:19:07 CEST 2017


This is an automated email from the git hooks/post-receive script.

mattia pushed a commit to branch experimental
in repository diffoscope.

commit 0724f011ea70fe432b743e35b827ee9c24b21d4a
Author: Mattia Rizzolo <mattia at debian.org>
Date:   Thu May 18 02:18:59 2017 +0200

    d/rules: export junit-xml style test report when building on jenkins
    
    Signed-off-by: Mattia Rizzolo <mattia at debian.org>
---
 debian/rules | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/debian/rules b/debian/rules
index 29514f3..883eecd 100755
--- a/debian/rules
+++ b/debian/rules
@@ -25,6 +25,10 @@ export PYBUILD_TEST_ARGS = -vv -r sxX -l --cov=diffoscope --cov-report=term-miss
 export PYBUILD_AFTER_TEST = debian/tests/basic-command-line
 export PYBUILD_AFTER_INSTALL = rm -rvf '{destdir}/{install_dir}/htmlcov' '{destdir}/{install_dir}/.coverage'
 
+ifneq ($(JENKINS_EXPORTS_DIR),)
+export PYBUILD_TEST_ARGS += --junit-xml=$(JENKINS_EXPORTS_DIR)/test-results/tests.xml
+endif
+
 %:
 	dh $@ --with python3 --with bash-completion --buildsystem=pybuild
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/reproducible/diffoscope.git


More information about the diffoscope mailing list