deb-ryu/tox.ini
IWASE Yusuke 6da65f508e tox: Move dependencies installation to .travis.yml
This patch moves dependencies installation in tox.ini to .travis.yml
in order to avoid to install dependencies repeatedly when running
tox tests on locally.

Signed-off-by: IWASE Yusuke <iwase.yusuke0@gmail.com>
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2016-12-14 13:23:32 +09:00

45 lines
991 B
INI

[tox]
envlist = py27,py34,py35,pypy26,pep8
[testenv]
deps =
-U
-r{toxinidir}/tools/pip-requires
--no-cache-dir
usedevelop = True
passenv= NOSE_VERBOSE
# Note: To check whether tools/pip-requires satisfies the requirements
# for running Ryu, the following runs ryu-manager berfore installing
# the addtional requirements.
commands =
ryu-manager ryu/tests/unit/cmd/dummy_openflow_app.py
pip install -r{toxinidir}/tools/optional-requires -r{toxinidir}/tools/test-requires
coverage run --source=ryu ryu/tests/run_tests.py '{posargs}'
[testenv:scenario]
commands =
python ryu/tests/integrated/run_test.py
[testenv:py27]
commands =
{[testenv]commands}
{[testenv:scenario]commands}
[testenv:py34]
commands =
{[testenv]commands}
{[testenv:scenario]commands}
[testenv:pep8]
deps =
-U
--no-cache-dir
pep8
commands =
pep8
[pep8]
exclude = pbr-*,.venv,.tox,.git,doc,dist,tools,vcsversion.py,.pyc,ryu/contrib,dictconfig.py
ignore = E113,E116,E402,E711,E731,E501,W503