2013-09-20 14:25:46 +00:00
|
|
|
[tox]
|
2014-12-01 21:15:02 +00:00
|
|
|
envlist = docs, py27, py27-integration, flake8
|
2013-09-20 14:25:46 +00:00
|
|
|
|
2013-09-26 15:49:51 +00:00
|
|
|
[testenv:py27]
|
2013-09-20 20:28:29 +00:00
|
|
|
sitepackages=True
|
2013-09-20 14:25:46 +00:00
|
|
|
deps=
|
|
|
|
-r{toxinidir}/requirements.txt
|
|
|
|
pytest
|
|
|
|
mock
|
|
|
|
fudge
|
|
|
|
nose
|
2014-11-11 22:10:27 +00:00
|
|
|
pytest-cov==1.6
|
|
|
|
coverage==3.7.1
|
2013-09-20 14:25:46 +00:00
|
|
|
|
2014-11-11 22:10:27 +00:00
|
|
|
commands=py.test --cov=teuthology --cov-report=term -v {posargs:teuthology scripts}
|
2013-09-26 15:49:51 +00:00
|
|
|
|
2014-11-12 21:21:27 +00:00
|
|
|
[testenv:py27-integration]
|
|
|
|
sitepackages=True
|
|
|
|
deps=
|
|
|
|
-r{toxinidir}/requirements.txt
|
|
|
|
pytest
|
|
|
|
mock
|
|
|
|
fudge
|
|
|
|
nose
|
|
|
|
pytest-cov==1.6
|
|
|
|
coverage==3.7.1
|
|
|
|
|
|
|
|
commands=py.test --cov=teuthology --cov-report=term -v {posargs:teuthology/test/integration teuthology/orchestra/test/integration}
|
|
|
|
basepython=python2.7
|
|
|
|
|
2013-09-26 15:49:51 +00:00
|
|
|
[testenv:flake8]
|
|
|
|
deps=
|
|
|
|
flake8
|
2013-10-09 21:56:49 +00:00
|
|
|
commands=flake8 --select=F {posargs:teuthology scripts}
|
2014-10-14 21:08:09 +00:00
|
|
|
|
|
|
|
[testenv:docs]
|
|
|
|
basepython=python
|
2014-12-02 16:03:53 +00:00
|
|
|
changedir=docs
|
2014-10-14 21:08:09 +00:00
|
|
|
deps=sphinx
|
|
|
|
commands=
|
|
|
|
sphinx-build -W -b html -d {envtmpdir}/doctrees . {envtmpdir}/html
|