Horizon Web interface for Freezer backup, restore and disaster recovery platform
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.4KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. [tox]
  2. envlist = py27,py27dj18,pep8,py34,pylint
  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. install_command = pip install -c{env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt} -U {opts} {packages}
  14. deps = -r{toxinidir}/requirements.txt
  15. -r{toxinidir}/test-requirements.txt
  16. http://tarballs.openstack.org/horizon/horizon-master.tar.gz
  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 = python setup.py test --coverage --testr-args='{posargs}'
  24. [testenv:py27dj18]
  25. basepython = python2.7
  26. commands =
  27. python manage.py test {posargs}
  28. [testenv:py34dj18]
  29. basepython = python3.4
  30. commands =
  31. python manage.py test {posargs}
  32. [testenv:docs]
  33. setenv = DJANGO_SETTINGS_MODULE=disaster_recovery.test.settings
  34. commands = python setup.py build_sphinx
  35. [testenv:pylint]
  36. commands = pylint --rcfile .pylintrc disaster_recovery
  37. [flake8]
  38. exclude = .venv,.git,.tox,dist,*openstack/common*,*lib/python*,*egg,build,panel_template,dash_template,local_settings.py,*/local/*,*/test/test_plugins/*,.ropeproject,tools,doc
  39. max-complexity = 20
  40. ignore = H405,H404,H403,H401,H238,H306,H701