forked from nose-devs/nose2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
39 lines (33 loc) · 1.06 KB
/
tox.ini
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
[tox]
envlist=py26,py27,py32,py33,py34,pypy,docs,self27,cov27
# Default settings for py27, py32, py33, py34 and pypy
[testenv]
deps=-r{toxinidir}/requirements.txt
commands=python -m unittest discover []
[testenv:jython]
deps=-r{toxinidir}/requirements.txt
-r{toxinidir}/requirements-py26.txt
commands=unit2 discover []
[testenv:docs]
basepython=python2.7
changedir=docs
deps=-r{toxinidir}/requirements.txt
-r{toxinidir}/requirements-docs.txt
commands=sphinx-build -b html -d {envtmpdir}/doctrees . {envtmpdir}/html
[testenv:py26]
deps=-r{toxinidir}/requirements.txt
-r{toxinidir}/requirements-py26.txt
commands=unit2 discover []
[testenv:self27]
basepython=python2.7
deps=-r{toxinidir}/requirements.txt
setenv=PYTHONPATH={toxinidir}
commands=python -m nose2.__main__ []
[testenv:cov27]
basepython=python2.7
deps=coverage>=3.3
-r{toxinidir}/requirements.txt
commands=coverage erase
coverage run -m unittest discover []
coverage report --include=*nose2* --omit=*nose2/tests*
coverage html -d cover --include=*nose2* --omit=*nose2/tests*