An oslo.config enabled dogpile.cache.
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.
 
 
 
 

72 lines
1.7 KiB

  1. [tox]
  2. minversion = 3.2.0
  3. envlist = py37,pep8
  4. ignore_basepython_conflict = True
  5. [testenv]
  6. basepython = python3
  7. whitelist_externals =
  8. find
  9. deps =
  10. -c{env:UPPER_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master}
  11. -r{toxinidir}/test-requirements.txt
  12. commands =
  13. find . -type f -name "*.pyc" -delete
  14. stestr run --slowest {posargs}
  15. [testenv:py35-functional-etcd3gw]
  16. basepython = python3.5
  17. commands =
  18. find . -type f -name "*.pyc" -delete
  19. {toxinidir}/tools/setup-etcd-env.sh pifpaf -e OSLO_CACHE_TEST run etcd -- stestr run --slowest functional.*
  20. [testenv:pep8]
  21. deps = {[testenv]deps}
  22. commands =
  23. flake8
  24. # Run security linter
  25. bandit -r oslo_cache -x tests -n5
  26. [testenv:venv]
  27. commands = {posargs}
  28. [testenv:docs]
  29. whitelist_externals = rm
  30. deps =
  31. -c{env:UPPER_CONSTRAINTS_FILE:https://opendev.org/openstack/requirements/raw/branch/master/upper-constraints.txt}
  32. -r{toxinidir}/doc/requirements.txt
  33. commands =
  34. rm -fr doc/build
  35. sphinx-build --keep-going -b html doc/source doc/build/html
  36. [testenv:cover]
  37. setenv =
  38. PYTHON=coverage run --source oslo_cache --parallel-mode
  39. commands =
  40. stestr run {posargs}
  41. coverage combine
  42. coverage html -d cover
  43. coverage xml -o cover/coverage.xml
  44. [flake8]
  45. show-source = True
  46. ignore = H405
  47. builtins = _
  48. exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,build
  49. [hacking]
  50. import_exceptions =
  51. [testenv:releasenotes]
  52. whitelist_externals =
  53. rm
  54. deps = {[testenv:docs]deps}
  55. commands =
  56. rm -rf releasenotes/build
  57. sphinx-build -a -E -W -d releasenotes/build/doctrees --keep-going -b html releasenotes/source releasenotes/build/html
  58. [testenv:lower-constraints]
  59. deps =
  60. -c{toxinidir}/lower-constraints.txt
  61. -r{toxinidir}/test-requirements.txt