28 lines
643 B
INI
28 lines
643 B
INI
[tox]
|
|
skipsdist=true
|
|
|
|
[testenv]
|
|
whitelist_externals = bash
|
|
commands =
|
|
{envpython} -V
|
|
{envpython} -m compileall speedtest.py
|
|
{envpython} speedtest.py
|
|
{envpython} speedtest.py --source 172.17.0.1
|
|
bash -c \'{envpython} speedtest.py --source 127.0.0.1 | grep "Invalid argument"\'
|
|
|
|
[testenv:flake8]
|
|
basepython=python
|
|
deps=flake8
|
|
commands =
|
|
{envpython} -V
|
|
flake8 speedtest.py
|
|
|
|
[testenv:pypy]
|
|
whitelist_externals = bash
|
|
commands =
|
|
pypy -V
|
|
pypy -m compileall speedtest.py
|
|
pypy speedtest.py
|
|
pypy speedtest.py --source 172.17.0.1
|
|
bash -c \'pypy speedtest.py --source 127.0.0.1 | grep "Invalid argument"\'
|