2014-04-17 23:25:21 +08:00
|
|
|
[tox]
|
|
|
|
skipsdist=true
|
|
|
|
|
|
|
|
[testenv]
|
|
|
|
commands =
|
|
|
|
{envpython} -V
|
2015-12-29 04:34:07 +08:00
|
|
|
{envpython} -m compileall speedtest.py
|
|
|
|
{envpython} speedtest.py
|
2017-05-03 23:56:54 +08:00
|
|
|
sh -c "{envpython} speedtest.py --source 127.0.0.1 || (( $? == 1 ))"
|
2014-04-17 23:25:21 +08:00
|
|
|
|
|
|
|
[testenv:flake8]
|
|
|
|
basepython=python
|
|
|
|
deps=flake8
|
|
|
|
commands =
|
|
|
|
{envpython} -V
|
2015-12-29 04:34:07 +08:00
|
|
|
flake8 speedtest.py
|
2014-04-17 23:25:21 +08:00
|
|
|
|
|
|
|
[testenv:pypy]
|
|
|
|
commands =
|
|
|
|
pypy -V
|
2015-12-29 04:34:07 +08:00
|
|
|
pypy -m compileall speedtest.py
|
|
|
|
pypy speedtest.py
|
2017-05-03 23:56:54 +08:00
|
|
|
sh -c "pypy speedtest.py --source 127.0.0.1 || (( $? == 1 ))"
|