Manage a pool of nodes for a distributed test infrastructure
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.1KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. [tox]
  2. minversion = 3.1
  3. skipsdist = True
  4. envlist = pep8,py35
  5. ignore_basepython_conflict = True
  6. [testenv]
  7. basepython = python3
  8. # Set STATSD env variables so that statsd code paths are tested.
  9. setenv = STATSD_HOST=localhost
  10. STATSD_PORT=8125
  11. VIRTUAL_ENV={envdir}
  12. OS_LOG_CAPTURE={env:OS_LOG_CAPTURE:true}
  13. OS_STDOUT_CAPTURE={env:OS_STDOUT_CAPTURE:true}
  14. OS_STDERR_CAPTURE={env:OS_STDERR_CAPTURE:true}
  15. usedevelop = True
  16. install_command = pip install {opts} {packages}
  17. deps = -r{toxinidir}/requirements.txt
  18. -r{toxinidir}/test-requirements.txt
  19. passenv = NODEPOOL_ZK_HOST
  20. commands = stestr --test-path ./nodepool/tests/unit run --no-subunit-trace {posargs}
  21. stestr slowest
  22. [testenv:pep8]
  23. commands = flake8 nodepool
  24. [testenv:bindep]
  25. # Do not install any requirements. We want this to be fast and work even if
  26. # system dependencies are missing, since it's used to tell you what system
  27. # dependencies are missing! This also means that bindep must be installed
  28. # separately, outside of the requirements files.
  29. deps = bindep
  30. commands = bindep test
  31. [testenv:cover]
  32. setenv =
  33. {[testenv]setenv}
  34. PYTHON=coverage run --source nodepool --parallel-mode
  35. commands =
  36. stestr --test-path ./nodepool/tests/unit run --no-subunit-trace {posargs}
  37. coverage combine
  38. coverage html -d cover
  39. coverage xml -o cover/coverage.xml
  40. [testenv:docs]
  41. deps = -r{toxinidir}/requirements.txt
  42. -r{toxinidir}/doc/requirements.txt
  43. commands =
  44. sphinx-build -E -W -d doc/build/doctrees -b html doc/source/ doc/build/html
  45. [testenv:venv]
  46. commands = {posargs}
  47. [testenv:functional_kubernetes]
  48. commands = stestr --test-path ./nodepool/tests/functional/kubernetes run --no-subunit-trace {posargs}
  49. stestr slowest
  50. [testenv:functional_openshift]
  51. basepython = python3
  52. commands = stestr --test-path ./nodepool/tests/functional/openshift run --no-subunit-trace {posargs}
  53. stestr slowest
  54. [flake8]
  55. # These are ignored intentionally in zuul projects;
  56. # please don't submit patches that solely correct them or enable them.
  57. ignore = E124,E125,E129,E402,H,W503
  58. show-source = True
  59. exclude = .venv,.tox,dist,doc,build,*.egg