kolla-kubernetes/tox.ini
zhuzeyu 16ee0ed97f Delete python bytecode file
Delete python bytecode including pyo

Change-Id: I165b0ec5b50dd24ee32825c84550218ab37c5038
2017-02-10 16:00:52 +08:00

65 lines
1.4 KiB
INI

[tox]
minversion = 2.0
envlist = py35,py34,py27,pypy,pep8
skipsdist = True
[testenv]
usedevelop = True
install_command = pip install -c{env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt} {opts} {packages}
setenv =
VIRTUAL_ENV={envdir}
KOLLA_KUBERNETES_TOX=1
deps = -r{toxinidir}/test-requirements.txt
commands = /bin/bash -c "tools/test.sh '{posargs}'"
[testenv:bashate]
commands = bashate tools/setup_gate.sh {posargs}
[testenv:pep8]
commands = flake8 {posargs}
[testenv:venv]
commands = {posargs}
[testenv:cover]
commands =
coverage erase
find . -type f -name "*.py[c|o]" -delete
python setup.py testr --coverage --testr-args='{posargs}'
coverage report
whitelist_externals =
find
[testenv:docs]
commands = python setup.py build_sphinx
[testenv:debug]
commands = oslo_debug_helper {posargs}
[testenv:deploy-centos-binary]
commands = echo
[testenv:deploy-centos-source]
commands = echo
[testenv:deploy-ubuntu-binary]
commands = echo
[testenv:deploy-ubuntu-source]
commands = echo
[testenv:releasenotes]
commands =
rm -rf releasenotes/build
sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html
whitelist_externals =
rm
[flake8]
# E123, E125 skipped as they are invalid PEP-8.
show-source = True
ignore = E123,E125
builtins = _
exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,build