mirror of
https://opendev.org/x/pyghmi
synced 2025-01-13 19:27:48 +00:00
12a83bc6de
Create a tox environment for running the unit tests against the lower bounds of the dependencies. Create a lower-constraints.txt to be used to enforce the lower bounds in those tests. Add openstack-tox-lower-constraints job to the zuul configuration. See [1] for details. 1. http://lists.openstack.org/pipermail/openstack-dev/2018-March/128352.html Change-Id: I0f8b1bd44cd2f401593ce079cdecce5020807051
42 lines
816 B
INI
42 lines
816 B
INI
[tox]
|
|
envlist = py35,py27,pep8
|
|
|
|
[testenv]
|
|
setenv = VIRTUAL_ENV={envdir}
|
|
LANG=en_US.UTF-8
|
|
LANGUAGE=en_US:en
|
|
LC_ALL=C
|
|
TESTS_DIR=./pyghmi/tests/unit/
|
|
deps = -r{toxinidir}/requirements.txt
|
|
-r{toxinidir}/test-requirements.txt
|
|
commands = ostestr {posargs}
|
|
|
|
[tox:jenkins]
|
|
sitepackages = True
|
|
|
|
[testenv:pep8]
|
|
whitelist_externals = bash
|
|
commands = bash -c 'pycodestyle pyghmi bin/*'
|
|
|
|
[testenv:cover]
|
|
setenv = VIRTUAL_ENV={envdir}
|
|
commands =
|
|
python setup.py testr --coverage
|
|
|
|
[testenv:venv]
|
|
commands = {posargs}
|
|
|
|
[flake8]
|
|
exclude = .venv,.tox,dist,doc,*.egg,build
|
|
show-source = true
|
|
|
|
[pep8]
|
|
ignore = E731,E226,E123
|
|
|
|
[testenv:lower-constraints]
|
|
basepython = python3
|
|
deps =
|
|
-c{toxinidir}/lower-constraints.txt
|
|
-r{toxinidir}/test-requirements.txt
|
|
-r{toxinidir}/requirements.txt
|