IBM System z DPM virtualization driver for OpenStack Nova
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

tox.ini 1.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. [tox]
  2. minversion = 2.0
  3. envlist = py35,py27,functional,pep8
  4. skipsdist = True
  5. [testenv]
  6. usedevelop = True
  7. # NOTE(markus_z): We need the commands keyword, otherwise tox 2.5.0 throws an error.
  8. # See https://bugs.launchpad.net/charm-aodh/+bug/1642981 and
  9. # https://github.com/tox-dev/tox/issues/316
  10. setenv =
  11. VIRTUAL_ENV={envdir}
  12. deps = -r{toxinidir}/test-requirements.txt
  13. -r{toxinidir}/requirements.txt
  14. -egit+https://github.com/openstack/nova#egg=nova
  15. whitelist_externals = bash
  16. install_command = pip install -c{env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt} {opts} {packages}
  17. commands = bash tools/pretty_tox.sh '{posargs}'
  18. [testenv:pep8]
  19. commands = flake8 {posargs}
  20. [testenv:venv]
  21. commands = {posargs}
  22. [testenv:cover]
  23. commands =
  24. coverage erase
  25. python setup.py test --coverage --coverage-package-name=nova_dpm --testr-args='{posargs}'
  26. coverage report
  27. [testenv:docs]
  28. basepython=python3
  29. commands =
  30. python setup.py build_sphinx
  31. oslo-config-generator --config-file=etc/nova/nova-dpm-config-generator.conf
  32. [testenv:debug]
  33. commands = oslo_debug_helper {posargs}
  34. [flake8]
  35. # E123, E125 skipped as they are invalid PEP-8.
  36. # H202: assertRaises Exception too broad (Removed this pep8 exception)
  37. # Failing unit test case when we use self.assertRaises(Exception, func). So ignored H202
  38. show-source = True
  39. ignore = E123,E125,H202
  40. builtins = _
  41. exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,build,.tmp,releasenotes
  42. [testenv:genconfig]
  43. commands = oslo-config-generator --config-file=etc/nova/nova-dpm-config-generator.conf