From 35b9800da7da9e5c4eb528d6c7c593323e45d22c Mon Sep 17 00:00:00 2001 From: Tobias Gruetzmacher Date: Sat, 16 Apr 2016 16:59:04 +0200 Subject: [PATCH] Tox: Always generate JUnit XML, run flake8. --- tox.ini | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/tox.ini b/tox.ini index a68a233e0..0a02d5981 100644 --- a/tox.ini +++ b/tox.ini @@ -1,22 +1,22 @@ -# Tox (http://tox.testrun.org/) is a tool for running tests -# in multiple virtualenvs. This configuration file will run the -# test suite on all supported python versions. To use it, "pip install tox" -# and then run "tox" from this directory. - [tox] envlist = py27, py35 [testenv] -commands = py.test --cov=dosage --cov=dosagelib --tb=short -n10 +commands = + {envbindir}/py.test --cov=dosage --cov=dosagelib --tb=short -n4 \ + --junitxml={toxworkdir}/junit-{envname}.xml + - {envbindir}/flake8 passenv = TRAVIS # Also install optional dependencies for tests. deps = - -r{toxinidir}/requirements.txt + -rrequirements.txt pytest-xdist pytest-cov pytest-travis-fold cssselect Pillow + flake8 + flake8-coding [flake8] # we aim for 79, but this suppresses warnings for now...