Juju Charm - Percona XtraDB Cluster
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.

97 lines
2.1KB

  1. # Classic 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,py37
  6. skipsdist = True
  7. [testenv]
  8. setenv = VIRTUAL_ENV={envdir}
  9. PYTHONHASHSEED=0
  10. CHARM_DIR={envdir}
  11. AMULET_SETUP_TIMEOUT=5400
  12. install_command =
  13. pip install {opts} {packages}
  14. commands = stestr run {posargs}
  15. whitelist_externals = juju
  16. passenv = HOME TERM AMULET_* CS_API_* OS_*
  17. deps = -r{toxinidir}/test-requirements.txt
  18. [testenv:py35]
  19. basepython = python3.5
  20. deps = -r{toxinidir}/requirements.txt
  21. -r{toxinidir}/test-requirements.txt
  22. [testenv:py36]
  23. basepython = python3.6
  24. deps = -r{toxinidir}/requirements.txt
  25. -r{toxinidir}/test-requirements.txt
  26. [testenv:py37]
  27. basepython = python3.7
  28. deps = -r{toxinidir}/requirements.txt
  29. -r{toxinidir}/test-requirements.txt
  30. [testenv:py3]
  31. basepython = python3
  32. deps = -r{toxinidir}/requirements.txt
  33. -r{toxinidir}/test-requirements.txt
  34. [testenv:pep8]
  35. basepython = python3
  36. deps = -r{toxinidir}/requirements.txt
  37. -r{toxinidir}/test-requirements.txt
  38. commands = flake8 {posargs} hooks unit_tests tests actions lib
  39. charm-proof
  40. [testenv:cover]
  41. # Technique based heavily upon
  42. # https://github.com/openstack/nova/blob/master/tox.ini
  43. basepython = python3
  44. deps = -r{toxinidir}/requirements.txt
  45. -r{toxinidir}/test-requirements.txt
  46. setenv =
  47. {[testenv]setenv}
  48. PYTHON=coverage run
  49. commands =
  50. coverage erase
  51. stestr run {posargs}
  52. coverage combine
  53. coverage html -d cover
  54. coverage xml -o cover/coverage.xml
  55. coverage report
  56. [coverage:run]
  57. branch = True
  58. concurrency = multiprocessing
  59. parallel = True
  60. source =
  61. .
  62. omit =
  63. .tox/*
  64. */charmhelpers/*
  65. unit_tests/*
  66. [testenv:venv]
  67. basepython = python3
  68. commands = {posargs}
  69. [testenv:func]
  70. basepython = python3
  71. commands =
  72. functest-run-suite --keep-model
  73. [testenv:func-smoke]
  74. basepython = python3
  75. commands =
  76. functest-run-suite --keep-model --smoke
  77. [testenv:func-dev]
  78. basepython = python3
  79. commands =
  80. functest-run-suite --keep-model --dev
  81. [flake8]
  82. ignore = E402,E226
  83. exclude = */charmhelpers