# HG changeset patch # User Charlie Clark <charlie.clark@clark-consulting.eu> # Date 1427722659 -7200 # Mon Mar 30 15:37:39 2015 +0200 # Node ID f23c1b9a29af560a1ff8a34ecb1ab733e6a51ea6 # Parent 48bc65cfdd7e25fa30025dfc28793ca89ad16888 Add tox config. diff --git a/tox.ini b/tox.ini new file mode 100644 --- /dev/null +++ b/tox.ini @@ -0,0 +1,28 @@ +# 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 = + py26, + py27, + py33, + py34, + doc, + +[testenv] +commands = {envbindir}/py.test {posargs} +deps = + pytest + lxml + +[testenv:doc] +changedir = doc +setenv = APIDOC=True + +deps = + sphinx +commands = + sphinx-apidoc -f -T -M -o api {toxinidir}/et_xmlfile {toxinidir}/et_xmlfile/tests + sphinx-build -b html -d {envtmpdir}/doctrees . {envtmpdir}/html