[tox] Add a dummy test-results.xml file in check-manifest and flake8 environments
authorDenis Laxalde <denis.laxalde@logilab.fr>
Fri, 23 Sep 2016 09:51:10 +0200
changeset 11475 d2fcd81b7ca9
parent 11474 28311db7a2a5
child 11476 a9f26de5ea6c
[tox] Add a dummy test-results.xml file in check-manifest and flake8 environments This is to work around Jenkins Junit plugin that does not apparently account for the absence of this file (though it accepts it to be empty).
.hgignore
tox.ini
--- a/.hgignore	Fri Sep 23 09:50:16 2016 +0200
+++ b/.hgignore	Fri Sep 23 09:51:10 2016 +0200
@@ -22,3 +22,4 @@
 ^doc/book/en/devweb/js_api/
 ^doc/_build
 ^doc/js_api/
+test-results.xml
--- a/tox.ini	Fri Sep 23 09:50:16 2016 +0200
+++ b/tox.ini	Fri Sep 23 09:51:10 2016 +0200
@@ -45,7 +45,10 @@
 skip_install = true
 deps =
   flake8 >= 3
-commands = flake8 {posargs:{toxinidir}}
+commands =
+  flake8 {toxinidir}
+# So that Jenkins JUnit plugin does not complain about missing XML results.
+  touch test-results.xml
 
 [testenv:doc]
 changedir = doc
@@ -63,6 +66,8 @@
 # ignore symlinks that are not recognized by check-manifest, see
 # https://github.com/mgedmin/check-manifest/issues/69
     --ignore cubicweb/devtools/test/data/cubes/i18ntestcube,cubicweb/test/data/legacy_cubes*
+# So that Jenkins JUnit plugin does not complain about missing XML results.
+  touch test-results.xml
 
 [pytest]
 python_files = *test_*.py