Skip to content

Commit 4e4e620

Browse files
committed
Automate testing supported Python versions, coverage, Sphinx docs w/ tox.
1 parent 89f0a85 commit 4e4e620

1 file changed

Lines changed: 28 additions & 0 deletions

File tree

tox.ini

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
[tox]
2+
envlist =
3+
# py26,py27,py32,py33,cover,docs
4+
py26,py27,cover,docs
5+
6+
[testenv]
7+
commands =
8+
nosetests
9+
deps =
10+
nose
11+
12+
[testenv:cover]
13+
basepython =
14+
python2.7
15+
commands =
16+
nosetests --with-xunit --with-xcoverage
17+
deps =
18+
coverage
19+
nosexcover
20+
21+
[testenv:docs]
22+
basepython =
23+
python2.7
24+
commands =
25+
sphinx-build -b html -d docs/_build/doctrees docs docs/_build/html
26+
# sphinx-build -b doctest -d docs/_build/doctrees docs docs/_build/doctest
27+
deps =
28+
Sphinx

0 commit comments

Comments
 (0)