Juju Charm - Neutron API - Networking Generic Switch
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. # 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. envlist = pep8,py27,py35
  6. skipsdist = True
  7. skip_missing_interpreters = True
  8. [testenv]
  9. setenv = VIRTUAL_ENV={envdir}
  10. PYTHONHASHSEED=0
  11. TERM=linux
  12. LAYER_PATH={toxinidir}/layers
  13. INTERFACE_PATH={toxinidir}/interfaces
  14. JUJU_REPOSITORY={toxinidir}/build
  15. passenv = http_proxy https_proxy
  16. install_command =
  17. pip install {opts} {packages}
  18. deps =
  19. -r{toxinidir}/requirements.txt
  20. [testenv:build]
  21. basepython = python2.7
  22. commands =
  23. charm-build --log-level DEBUG -o {toxinidir}/build src {posargs}
  24. [testenv:py27]
  25. basepython = python2.7
  26. # Reactive source charms are Python3-only, but a py27 unit test target
  27. # is required by OpenStack Governance. Remove this shim as soon as
  28. # permitted. http://governance.openstack.org/reference/cti/python_cti.html
  29. whitelist_externals = true
  30. commands = true
  31. [testenv:py34]
  32. basepython = python3.4
  33. deps = -r{toxinidir}/test-requirements.txt
  34. commands = ostestr {posargs}
  35. [testenv:py35]
  36. basepython = python3.5
  37. deps = -r{toxinidir}/test-requirements.txt
  38. commands = ostestr {posargs}
  39. [testenv:pep8]
  40. basepython = python3.5
  41. deps = -r{toxinidir}/test-requirements.txt
  42. commands = flake8 {posargs} src unit_tests
  43. [testenv:venv]
  44. basepython = python3
  45. commands = {posargs}
  46. [flake8]
  47. ignore = E402,E226
  48. exclude = */charmhelpers