Neutron drivers for PowerVM network management.
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 2.5KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. [tox]
  2. envlist = py36,py27,pep8
  3. minversion = 3.1.1
  4. skipsdist = True
  5. # Automatic envs (pyXX) will use the python version appropriate to that
  6. # env and ignore basepython inherited from [testenv]. That's what we
  7. # want, and we don't need to be warned about it.
  8. ignore_basepython_conflict = True
  9. [testenv]
  10. basepython = python3
  11. setenv =
  12. VIRTUAL_ENV={envdir}
  13. LANGUAGE=en_US
  14. LC_ALL=en_US.utf-8
  15. OS_STDOUT_CAPTURE=1
  16. OS_STDERR_CAPTURE=1
  17. OS_TEST_TIMEOUT=60
  18. usedevelop = True
  19. install_command = pip install {opts} {packages}
  20. deps =
  21. -c{env:UPPER_CONSTRAINTS_FILE:https://opendev.org/openstack/requirements/raw/branch/master/upper-constraints.txt}
  22. -r{toxinidir}/requirements.txt
  23. -r{toxinidir}/test-requirements.txt
  24. -egit+https://opendev.org/openstack/neutron#egg=neutron
  25. -rhttps://opendev.org/openstack/neutron/raw/branch/master/test-requirements.txt
  26. whitelist_externals =
  27. bash
  28. find
  29. commands =
  30. find . -type f -name "*.pyc" -delete
  31. [testenv:py27]
  32. commands =
  33. {[testenv]commands}
  34. stestr run {posargs}
  35. stestr slowest
  36. [testenv:py36]
  37. commands =
  38. {[testenv]commands}
  39. stestr run {posargs}
  40. stestr slowest
  41. [testenv:py37]
  42. commands =
  43. {[testenv]commands}
  44. stestr run {posargs}
  45. stestr slowest
  46. [testenv:pep8]
  47. commands = flake8
  48. [testenv:cover]
  49. setenv =
  50. {[testenv]setenv}
  51. PYTHON=coverage run --source networking_powervm --parallel-mode
  52. commands =
  53. coverage erase
  54. stestr run {posargs}
  55. coverage combine
  56. coverage html -d cover
  57. coverage xml -o cover/coverage.xml
  58. coverage report
  59. [testenv:venv]
  60. commands = {posargs}
  61. [testenv:docs]
  62. deps =
  63. -c{env:UPPER_CONSTRAINTS_FILE:https://opendev.org/openstack/requirements/raw/branch/master/upper-constraints.txt}
  64. -r{toxinidir}/doc/requirements.txt
  65. commands = sphinx-build -W -b html doc/source doc/build/html
  66. [testenv:bashate]
  67. commands =
  68. bash -c "ls devstack/*.sh | xargs bashate -v {posargs}"
  69. whitelist_externals = bash
  70. [flake8]
  71. # N530 direct neutron imports not allowed
  72. # W504 line break after binary operator
  73. # It's either ^ or W503 (line break *before* binary operator). Match neutron.
  74. ignore = N530,W504
  75. enable-extensions = H106,H203,H204,H205,H904
  76. show-source = true
  77. exclude = ./.*,build,dist,doc
  78. import-order-style = pep8
  79. [hacking]
  80. local-check-factory = networking_powervm.hacking.checks.factory
  81. [testenv:lower-constraints]
  82. deps =
  83. -c{toxinidir}/lower-constraints.txt
  84. -r{toxinidir}/test-requirements.txt
  85. -r{toxinidir}/requirements.txt
  86. -egit+https://opendev.org/openstack/neutron#egg=neutron
  87. -rhttps://opendev.org/openstack/neutron/raw/branch/master/test-requirements.txt