Generic Key Manager interface UI plugin for Horizon
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.3KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. [tox]
  2. envlist = py35,py27,py27dj18,pep8
  3. minversion = 2.0
  4. skipsdist = True
  5. [testenv]
  6. usedevelop = True
  7. setenv = NOSE_WITH_OPENSTACK=1
  8. NOSE_OPENSTACK_COLOR=1
  9. NOSE_OPENSTACK_RED=0.05
  10. NOSE_OPENSTACK_YELLOW=0.025
  11. NOSE_OPENSTACK_SHOW_ELAPSED=1
  12. install_command = pip install -U {opts} {packages}
  13. deps = -c{env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt}
  14. -r{toxinidir}/requirements.txt
  15. -r{toxinidir}/test-requirements.txt
  16. commands = python manage.py test {posargs} --settings=castellan_ui.test.settings
  17. [testenv:pep8]
  18. commands = flake8 {posargs}
  19. [testenv:venv]
  20. commands = {posargs}
  21. [testenv:cover]
  22. commands =
  23. coverage erase
  24. coverage run {toxinidir}/manage.py test castellan_ui --settings=castellan_ui.test.settings {posargs} --exclude-dir=castellan_ui/test/integration_tests {posargs}
  25. coverage xml --omit '.tox/cover/*' -o 'cover/coverage.xml'
  26. coverage html --omit '.tox/cover/*' -d 'cover/htmlcov'
  27. [testenv:py27dj18]
  28. basepython = python2.7
  29. commands =
  30. pip install django>=1.8,<1.9
  31. python manage.py test {posargs} --settings=castellan_ui.test.settings
  32. [testenv:eslint]
  33. whitelist_externals = npm
  34. commands =
  35. npm install
  36. npm run postinstall
  37. npm run lint
  38. [testenv:karma]
  39. # NOTE(shu-mutou): Until PhantomJS setup get reliable, we use
  40. # Chromium for JS test. And npm can't launch Chromium via tox.
  41. #whitelist_externals = npm
  42. #commands =
  43. # npm install
  44. # npm run postinstall
  45. # npm run test
  46. whitelist_externals = echo
  47. commands =
  48. echo "npm can't launch Chromium via tox."
  49. echo "nexecute `npm run test`"
  50. [testenv:docs]
  51. deps = -c{env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt}
  52. -r{toxinidir}/requirements.txt
  53. -r{toxinidir}/doc/requirements.txt
  54. commands = sphinx-build -W -d doc/build/doctrees -b html doc/source/ doc/build/html
  55. [testenv:releasenotes]
  56. deps = -c{env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt}
  57. -r{toxinidir}/doc/requirements.txt
  58. commands = sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html
  59. [flake8]
  60. exclude = .venv,.git,.tox,dist,*lib/python*,*egg,build,node_modules,.tmp
  61. max-complexity = 20