Juju Charm - Cinder Purestorage backend
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.

80 lines
1.8KB

  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,py3
  7. [testenv]
  8. setenv = VIRTUAL_ENV={envdir}
  9. PYTHONHASHSEED=0
  10. TERM=linux
  11. CHARM_LAYERS_DIR={toxinidir}/layers
  12. JUJU_REPOSITORY={toxinidir}/build
  13. passenv = http_proxy https_proxy INTERFACE_PATH
  14. install_command =
  15. pip install {opts} {packages}
  16. deps =
  17. -r{toxinidir}/requirements.txt
  18. [testenv:build]
  19. basepython = python3
  20. commands =
  21. charm-build --log-level DEBUG -o {toxinidir}/build src {posargs}
  22. [testenv:py3]
  23. basepython = python3
  24. deps = -r{toxinidir}/test-requirements.txt
  25. commands = stestr run {posargs}
  26. [testenv:py35]
  27. basepython = python3.5
  28. deps = -r{toxinidir}/test-requirements.txt
  29. commands = stestr run {posargs}
  30. [testenv:py36]
  31. basepython = python3.6
  32. deps = -r{toxinidir}/test-requirements.txt
  33. commands = stestr run {posargs}
  34. [testenv:pep8]
  35. basepython = python3
  36. deps = -r{toxinidir}/test-requirements.txt
  37. commands = flake8 {posargs} src unit_tests
  38. [testenv:cover]
  39. # Technique based heavily upon
  40. # https://github.com/openstack/nova/blob/master/tox.ini
  41. basepython = python3
  42. deps = -r{toxinidir}/requirements.txt
  43. -r{toxinidir}/test-requirements.txt
  44. setenv =
  45. {[testenv]setenv}
  46. PYTHON=coverage run
  47. commands =
  48. coverage erase
  49. stestr run {posargs}
  50. coverage combine
  51. coverage html -d cover
  52. coverage xml -o cover/coverage.xml
  53. coverage report
  54. [coverage:run]
  55. branch = True
  56. concurrency = multiprocessing
  57. parallel = True
  58. source =
  59. .
  60. omit =
  61. .tox/*
  62. */charmhelpers/*
  63. unit_tests/*
  64. [testenv:venv]
  65. basepython = python3
  66. commands = {posargs}
  67. [flake8]
  68. # E402 ignore necessary for path append before sys module import in actions
  69. ignore = E402