tox.ini 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. [tox]
  2. envlist = 2.7,pypy,3.4,3.5,pypy3,flake8,flakeplus,apicheck,configcheck
  3. [testenv]
  4. deps=
  5. -r{toxinidir}/requirements/default.txt
  6. -r{toxinidir}/requirements/test.txt
  7. 2.7: -r{toxinidir}/requirements/test-ci-default.txt
  8. 3.4,3.5: -r{toxinidir}/requirements/test-ci-default.txt
  9. pypy,pypy3: -r{toxinidir}/requirements/test-ci-base.txt
  10. linkcheck,apicheck,configcheck: -r{toxinidir}/requirements/docs.txt
  11. flake8,flakeplus: -r{toxinidir}/requirements/pkgutils.txt
  12. sitepackages = False
  13. recreate = False
  14. commands = pip install -U -r{toxinidir}/requirements/dev.txt
  15. nosetests -xsv --with-coverage \
  16. --cover-inclusive --cover-min-percentage=92 --cover-erase []
  17. basepython =
  18. 2.7,flake8,flakeplus,apicheck,linkcheck,configcheck: python2.7
  19. 3.4: python3.4
  20. 3.5: python3.5
  21. pypy: pypy
  22. pypy3: pypy3
  23. [testenv:apicheck]
  24. commands =
  25. pip install -U -r{toxinidir}/requirements/dev.txt
  26. sphinx-build -b apicheck -d {envtmpdir}/doctrees docs docs/_build/apicheck
  27. [testenv:configcheck]
  28. commands =
  29. pip install -U -r{toxinidir}/requirements/dev.txt
  30. sphinx-build -b configcheck -d {envtmpdir}/doctrees docs docs/_build/configcheck
  31. [testenv:linkcheck]
  32. commands =
  33. pip install -U -r{toxinidir}/requirements/dev.txt
  34. sphinx-build -W -b linkcheck -d {envtmpdir}/doctrees docs docs/_build/linkcheck
  35. [testenv:flake8]
  36. commands =
  37. flake8 --ignore=X999 {toxinidir}/celery
  38. [testenv:flakeplus]
  39. commands =
  40. flakeplus --2.7 {toxinidir}/celery