ceilometer-zvm/tox.ini
Dong Ma 63f0b1dd5a Update ceilometer zuul jobs and fix UT on python3
* Enable upload-git-mirror job to replicate to github.ibm.com
* Enable python3 job and drop py2 job
* Fixed the UT errors on python3
* Fixed the pep8: E501 line too long (83 > 79 characters)

Change-Id: I6a15ff396282032e91732eaad632ea65db7c18e0
2020-12-02 09:57:11 +08:00

35 lines
867 B
INI

[tox]
minversion = 1.6
envlist = pep8,py27,py36,py37,py38
skipsdist = True
[testenv]
whitelist_externals = *
usedevelop = True
install_command = pip install -U {opts} {packages}
setenv =
VIRTUAL_ENV={envdir}
deps = -r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
-egit+https://github.com/openstack/ceilometer@master#egg=ceilometer
commands = /bin/cp -r {toxinidir}/ceilometer_zvm/compute/virt/zvm \
{toxinidir}/.tox/{envname}/src/ceilometer/ceilometer/compute/virt/
python setup.py testr --slowest --testr-args='{posargs}'
[testenv:pep8]
commands = flake8
[testenv:venv]
commands = {posargs}
[testenv:cover]
commands = python setup.py testr --coverage --testr-args='{posargs}'
[flake8]
ignore = E126,E127,E128,E129
exclude = .venv,.git,.tox,dist,doc,*egg,build
[hacking]
import_exceptions = nova.i18n