forked from aio-libs/aiohttp
-
Notifications
You must be signed in to change notification settings - Fork 1
/
tox.ini
60 lines (46 loc) · 972 Bytes
/
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
49
50
51
52
53
54
55
56
57
58
59
60
[tox]
envlist = check, {py34,py35}-{debug,release}-{cchardet,cython,pure}, report
[testenv]
deps =
pytest
# pytest-cov
coverage
gunicorn
cchardet: cython
cchardet: cchardet
cython: cython
commands =
# --cov={envsitepackagesdir}/tests
# py.test --cov={envsitepackagesdir}/aiohttp tests {posargs}
coverage run -m pytest tests {posargs}
mv .coverage .coverage.{envname}
setenv =
debug: PYTHONASYNCIODEBUG = 1
pure: AIOHTTP_NO_EXTENSIONS = 1
basepython:
py34: python3.4
py35: python3.5
whitelist_externals =
coverage
mv
echo
[testenv:check]
deps =
wheel
flake8
pyflakes>=1.0.0
coverage
commands =
flake8 aiohttp examples tests
python setup.py check -rm
coverage erase
basepython:
python3.5
[testenv:report]
commands =
coverage combine
coverage report
coverage html
echo "open file://{toxinidir}/coverage/index.html"
basepython:
python3.5