python/tox.ini
Davanum Srinivas 7fd6d559b8 Use py.test instead of nosetests for better problem reporting (#282)
nosetests output is not very useful for diagnosing issues when
running in travis. Let us switch to py.test
2017-07-06 18:27:30 -07:00

45 lines
936 B
INI

[tox]
envlist = py27, py34, py35, py36
[testenv]
passenv = TOXENV CI TRAVIS TRAVIS_*
usedevelop = True
install_command = pip install -U {opts} {packages}
deps = -r{toxinidir}/test-requirements.txt
-r{toxinidir}/requirements.txt
commands =
python -V
py.test -vvv -s --ignore=kubernetes/e2e_test
[testenv:docs]
commands =
python setup.py build_sphinx
[testenv:update-pep8]
commands =
{toxinidir}/scripts/update-pep8.sh
[testenv:py27-functional]
commands =
python -V
{toxinidir}/scripts/kube-init.sh py.test -vvv -s []
[testenv:py35-functional]
commands =
python -V
{toxinidir}/scripts/kube-init.sh py.test -vvv -s []
[testenv:py36-functional]
commands =
python -V
{toxinidir}/scripts/kube-init.sh py.test -vvv -s []
[testenv:coverage]
commands =
python -V
nosetests --with-coverage --cover-package=kubernetes.config,kubernetes.watch --cover-tests
[testenv:codecov]
commands =
codecov