The UI component for Distil
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 3.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. [tox]
  2. envlist = py27,py27dj18,pep8,py35
  3. minversion = 1.6
  4. skipsdist = True
  5. [testenv]
  6. usedevelop = True
  7. setenv = VIRTUAL_ENV={envdir}
  8. NOSE_WITH_OPENSTACK=1
  9. NOSE_OPENSTACK_COLOR=1
  10. NOSE_OPENSTACK_RED=0.05
  11. NOSE_OPENSTACK_YELLOW=0.025
  12. NOSE_OPENSTACK_SHOW_ELAPSED=1
  13. DJANGO_SETTINGS_MODULE=distil_ui.test.settings
  14. install_command = pip install -c{env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt} -U {opts} {packages}
  15. deps = -r{toxinidir}/requirements.txt
  16. -r{toxinidir}/test-requirements.txt
  17. commands = python manage.py test {posargs}
  18. [testenv:pep8]
  19. commands = flake8 {posargs}
  20. [testenv:venv]
  21. commands = {posargs}
  22. [testenv:cover]
  23. commands =
  24. pip install git+https://github.com/openstack/python-distilclient.git
  25. coverage erase
  26. coverage run {toxinidir}/manage.py test distil_ui
  27. coverage xml --omit '.tox/cover/*' -o 'cover/coverage.xml'
  28. coverage html --omit '.tox/cover/*' -d 'cover/htmlcov'
  29. [testenv:py27dj18]
  30. basepython = python2.7
  31. commands =
  32. pip install git+https://github.com/openstack/python-distilclient.git
  33. python manage.py test {posargs}
  34. [testenv:py27]
  35. basepython = python2.7
  36. commands =
  37. pip install git+https://github.com/openstack/python-distilclient.git
  38. python manage.py test {posargs}
  39. [testenv:py35]
  40. basepython = python3.5
  41. commands =
  42. pip install git+https://github.com/openstack/python-distilclient.git
  43. python manage.py test {posargs}
  44. [testenv:py27debug]
  45. basepython = python2.7
  46. whitelist_externals = oslo_debug_helper
  47. commands =
  48. pip install git+https://github.com/openstack/python-distilclient.git
  49. oslo_debug_helper -t python manage.py test {posargs}
  50. [testenv:eslint]
  51. whitelist_externals = npm
  52. commands =
  53. npm install
  54. npm run {posargs:postinstall}
  55. npm run {posargs:lint}
  56. [testenv:karma]
  57. whitelist_externals = npm
  58. commands =
  59. npm install
  60. npm run {posargs:postinstall}
  61. npm run {posargs:test}
  62. [testenv:docs]
  63. commands = python setup.py build_sphinx
  64. [flake8]
  65. exclude = .venv,.git,.tox,dist,*lib/python*,*egg,build,panel_template,dash_template,local_settings.py,*/local/*,*/test/test_plugins/*,.ropeproject,node_modules
  66. max-complexity = 20
  67. [hacking]
  68. import_exceptions = collections.defaultdict,
  69. django.conf.settings,
  70. django.conf.urls.include,
  71. django.conf.urls.patterns,
  72. django.conf.urls.url,
  73. django.core.urlresolvers.reverse,
  74. django.core.urlresolvers.reverse_lazy,
  75. django.template.loader.render_to_string,
  76. django.test.utils.override_settings,
  77. django.utils.datastructures.SortedDict,
  78. django.utils.encoding.force_text,
  79. django.utils.html.conditional_escape,
  80. django.utils.html.escape,
  81. django.utils.http.urlencode,
  82. django.utils.safestring.mark_safe,
  83. django.utils.translation.npgettext_lazy,
  84. django.utils.translation.pgettext_lazy,
  85. django.utils.translation.ugettext_lazy,
  86. django.utils.translation.ungettext_lazy,
  87. operator.attrgetter,
  88. StringIO.StringIO