OpenStack Swift incremental backup and restore automation tool for file system, MongoDB, MySQL. LVM snapshot and encryption support.
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 2.3KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  1. [tox]
  2. envlist = py27,py36,py37,pep8,pylint,docs
  3. skipsdist = True
  4. [testenv]
  5. usedevelop = True
  6. deps =
  7. -c{env:UPPER_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master}
  8. -r{toxinidir}/requirements.txt
  9. -r{toxinidir}/test-requirements.txt
  10. passenv =
  11. FREEZER_TEST_SSH_KEY
  12. FREEZER_TEST_SSH_USERNAME
  13. FREEZER_TEST_SSH_HOST
  14. FREEZER_TEST_CONTAINER
  15. FREEZER_TEST_OS_TENANT_NAME
  16. FREEZER_TEST_OS_USERNAME
  17. FREEZER_TEST_OS_REGION_NAME
  18. FREEZER_TEST_OS_PASSWORD
  19. FREEZER_TEST_OS_AUTH_URL
  20. FREEZER_TEST_NO_LVM
  21. http_proxy HTTP_PROXY https_proxy HTTPS_PROXY no_proxy NO_PROXY
  22. install_command = pip install {opts} {packages}
  23. setenv =
  24. VIRTUAL_ENV={envdir}
  25. OS_TEST_PATH = ./freezer/tests/unit
  26. PYTHON=coverage run --source freezer --parallel-mode
  27. commands =
  28. find . -type f -name "*.pyc" -delete
  29. stestr run {posargs}
  30. coverage combine
  31. coverage html -d cover
  32. coverage xml -o cover/coverage.xml
  33. coverage report -m
  34. rm -f .coverage
  35. rm -rf .testrepository
  36. whitelist_externals =
  37. find
  38. coverage
  39. rm
  40. python_files = test_*.py
  41. norecursedirs = .tox .venv
  42. [testenv:venv]
  43. basepython = python3
  44. commands = {posargs}
  45. [testenv:py27]
  46. basepython = python2.7
  47. [testenv:py37]
  48. basepython = python3.7
  49. [testenv:py36]
  50. basepython = python3.6
  51. [testenv:docs]
  52. basepython = python3
  53. deps = -r{toxinidir}/doc/requirements.txt
  54. whitelist_externals = rm
  55. commands =
  56. rm -rf doc/build/
  57. sphinx-build -b html doc/source doc/build/html
  58. [testenv:pep8]
  59. basepython = python3
  60. commands =
  61. flake8 freezer
  62. doc8 {posargs}
  63. [testenv:pylint]
  64. basepython = python3
  65. commands = pylint --rcfile .pylintrc freezer
  66. [flake8]
  67. ignore = H405,H404,H403,H401
  68. show-source = True
  69. enable-extensions = H203,H106
  70. exclude = .venv,.tox,dist,doc,test,*egg,releasenotes
  71. [doc8]
  72. ignore = D000,D001
  73. ignore-path = .venv,.git,.tox,.tmp,*freezer/locale*,*lib/python*,freezer.egg*,doc/build,releasenotes/*,doc/source/contributor/api
  74. [testenv:releasenotes]
  75. basepython = python3
  76. deps = -r{toxinidir}/doc/requirements.txt
  77. whitelist_externals = rm
  78. commands =
  79. rm -rf releasenotes/build
  80. sphinx-build -a -E -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html
  81. [testenv:lower-constraints]
  82. basepython = python3
  83. deps =
  84. -c{toxinidir}/lower-constraints.txt
  85. -r{toxinidir}/test-requirements.txt
  86. -r{toxinidir}/requirements.txt