forked from nose-devs/nose2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
48 lines (40 loc) · 1.35 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
40
41
42
43
44
45
46
47
48
[tox]
envlist=py26,py27,py32,pypy,docs,self26,cov26
[testenv:docs]
basepython=python2.7
changedir=docs
commands=pip install -r ../requirements.txt
pip install -r ../requirements-docs.txt
sphinx-build -W -b html -d {envtmpdir}/doctrees . {envtmpdir}/html
[testenv:jython]
basepython=jython
[testenv:pypy]
basepython=pypy
[testenv]
commands=pip install -r requirements.txt
pip install -r requirements-docs.txt
pip install -r requirements-py26.txt
unit2 discover []
[testenv:py27]
commands=pip install -r requirements.txt
pip install -r requirements-docs.txt
python -m unittest discover []
[testenv:py32]
commands=pip install -r requirements.txt
pip install -r requirements-docs.txt
python -m unittest discover []
[testenv:self26]
commands=pip install -r requirements.txt
pip install -r requirements-docs.txt
pip install -r requirements-py26.txt
python -m nose2.__main__
[testenv:cov26]
basepython=python2.6
deps=coverage>=3.3
commands=pip install -r requirements.txt
pip install -r requirements-docs.txt
pip install -r requirements-py26.txt
coverage erase
coverage run -L {envbindir}/unit2 discover []
coverage report --include=*nose2* --omit=*nose2/tests*
coverage html -d cover --include=*nose2* --omit=*nose2/tests*