Mogan UI plugin
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. skipsdist = True
  4. envlist = py35,py27,pep8
  5. [testenv]
  6. usedevelop = True
  7. install_command = pip install -c{env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt} {opts} {packages}
  8. setenv = VIRTUAL_ENV={envdir}
  9. NOSE_WITH_OPENSTACK=1
  10. NOSE_OPENSTACK_COLOR=1
  11. NOSE_OPENSTACK_RED=0.05
  12. NOSE_OPENSTACK_YELLOW=0.025
  13. NOSE_OPENSTACK_SHOW_ELAPSED=1
  14. deps = -r{toxinidir}/requirements.txt
  15. -r{toxinidir}/test-requirements.txt
  16. commands = {toxinidir}/manage.py test mogan_ui --settings=mogan_ui.test.settings
  17. [testenv:pep8]
  18. commands = flake8 {posargs}
  19. [testenv:venv]
  20. commands = {posargs}
  21. [testenv:cover]
  22. commands = python setup.py test --coverage --testr-args='{posargs}'
  23. [testenv:docs]
  24. commands = python setup.py build_sphinx
  25. [testenv:debug]
  26. commands = oslo_debug_helper {posargs}
  27. [flake8]
  28. show-source = True
  29. builtins = _
  30. exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,build
  31. [testenv:extractmessages]
  32. commands =
  33. pybabel extract -F babel-django.cfg \
  34. -o mogan_ui/locale/django.pot -k gettext_noop -k gettext_lazy -k ngettext_lazy:1,2 \
  35. -k ugettext_noop -k ugettext_lazy -k ungettext_lazy:1,2 -k npgettext:1c,2,3 \
  36. -k pgettext_lazy:1c,2 -k npgettext_lazy:1c,2,3 --add-comments Translators: mogan_ui
  37. pybabel extract -F babel-djangojs.cfg \
  38. -o mogan_ui/locale/djangojs.pot -k gettext_noop -k gettext_lazy -k ngettext_lazy:1,2 \
  39. -k ugettext_noop -k ugettext_lazy -k ungettext_lazy:1,2 -k npgettext:1c,2,3 \
  40. -k pgettext_lazy:1c,2 -k npgettext_lazy:1c,2,3 --add-comments Translators: mogan_ui