OpenStack Virtual Baremetal (OVB)
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.
 
 
 
 

50 lines
1.1 KiB

  1. [tox]
  2. minversion = 3.2.0
  3. skipsdist = True
  4. envlist = py37,py38,pep8
  5. ignore_basepython_conflict = True
  6. [testenv]
  7. usedevelop = True
  8. setenv =
  9. VIRTUAL_ENV={envdir}
  10. OS_STDOUT_CAPTURE=1
  11. OS_STDERR_CAPTURE=1
  12. OS_TEST_TIMEOUT=60
  13. OS_LOG_CAPTURE=1
  14. deps = -c{env:UPPER_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master}
  15. -r{toxinidir}/test-requirements.txt
  16. -r{toxinidir}/requirements.txt
  17. commands = stestr run {posargs}
  18. basepython = python3
  19. [testenv:venv]
  20. commands = {posargs}
  21. [testenv:docs]
  22. commands = sphinx-build -W -b html doc/source doc/build/html
  23. [testenv:pep8]
  24. deps = flake8
  25. whitelist_externals = bash
  26. commands =
  27. flake8
  28. bash -c bin/check-up-to-date.sh
  29. [testenv:cover]
  30. setenv =
  31. PYTHON=coverage run --source openstack_virtual_baremetal --parallel-mode
  32. commands =
  33. stestr run '{posargs}'
  34. coverage combine
  35. coverage html -d cover
  36. coverage xml -o cover/coverage.xml
  37. [testenv:genconfig]
  38. commands = python3 bin/environment-generator.py sample-env-generator --index doc/source/deploy/environment-index.rst
  39. [flake8]
  40. ignore = H803,W504
  41. show-source = True
  42. exclude = .tox,dist,doc,*.egg,build