Mistral Horizon 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.4KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. [tox]
  2. minversion = 2.0
  3. envlist = pep8,py27,py35
  4. skipsdist = True
  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 =
  9. VIRTUAL_ENV={envdir}
  10. deps = -r{toxinidir}/requirements.txt
  11. -r{toxinidir}/test-requirements.txt
  12. http://tarballs.openstack.org/horizon/horizon-master.tar.gz
  13. commands =
  14. find . -type f -name "*.pyc" -delete
  15. /bin/bash run_tests.sh -N --no-pep8 {posargs}
  16. whitelist_externals = find
  17. [testenv:py27]
  18. setenv = DJANGO_SETTINGS_MODULE=mistraldashboard.test.settings
  19. [testenv:pep8]
  20. basepython = python3
  21. commands =
  22. flake8
  23. [testenv:venv]
  24. basepython = python3
  25. commands = {posargs}
  26. [testenv:cover]
  27. basepython = python3
  28. commands = python setup.py testr --coverage --testr-args='{posargs}'
  29. [testenv:docs]
  30. basepython = python3
  31. commands = python setup.py build_sphinx
  32. [testenv:debug]
  33. basepython = python3
  34. whitelist_externals = oslo_debug_helper
  35. commands = oslo_debug_helper -t mistraldashboard/test {posargs}
  36. [flake8]
  37. show-source = True
  38. exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,build,.ropeproject,tools,horizon
  39. [testenv:releasenotes]
  40. basepython = python3
  41. commands = sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html
  42. [testenv:py35dj20]
  43. basepython = python3.5
  44. commands =
  45. pip install django>=2.0,<2.1
  46. {[testenv]commands}