Juju Charm - Nova Cell Controller
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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. # Source charm: ./tox.ini
  2. # This file is managed centrally by release-tools and should not be modified
  3. # within individual charm repos.
  4. [tox]
  5. skipsdist = True
  6. envlist = pep8,py34,py35
  7. skip_missing_interpreters = True
  8. [testenv]
  9. setenv = VIRTUAL_ENV={envdir}
  10. PYTHONHASHSEED=0
  11. TERM=linux
  12. LAYER_PATH={toxinidir}/layers
  13. JUJU_REPOSITORY={toxinidir}/build
  14. passenv = http_proxy https_proxy INTERFACE_PATH
  15. install_command =
  16. pip install {opts} {packages}
  17. deps =
  18. -r{toxinidir}/requirements.txt
  19. [testenv:build]
  20. basepython = python2.7
  21. commands =
  22. charm-build --log-level DEBUG -o {toxinidir}/build src {posargs}
  23. [testenv:py27]
  24. basepython = python2.7
  25. # Reactive source charms are Python3-only, but a py27 unit test target
  26. # is required by OpenStack Governance. Remove this shim as soon as
  27. # permitted. http://governance.openstack.org/reference/cti/python_cti.html
  28. whitelist_externals = true
  29. commands = true
  30. [testenv:py34]
  31. basepython = python3.4
  32. deps = -r{toxinidir}/test-requirements.txt
  33. commands = ostestr {posargs}
  34. [testenv:py35]
  35. basepython = python3.5
  36. deps = -r{toxinidir}/test-requirements.txt
  37. commands = ostestr {posargs}
  38. [testenv:pep8]
  39. basepython = python3.5
  40. deps = -r{toxinidir}/test-requirements.txt
  41. commands = flake8 {posargs} src unit_tests
  42. [testenv:venv]
  43. commands = {posargs}
  44. [flake8]
  45. # E402 ignore necessary for path append before sys module import in actions
  46. ignore = E402