tox.ini 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  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,2.7.6: -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=94 --cover-erase []
  17. basepython =
  18. 2.7,flake8,flakeplus,apicheck,linkcheck,configcheck: python2.7
  19. 2.7.6: python2.7.6
  20. 3.4: python3.4
  21. 3.5: python3.5
  22. pypy: pypy
  23. pypy3: pypy3
  24. [testenv:apicheck]
  25. commands =
  26. pip install -U -r{toxinidir}/requirements/dev.txt
  27. sphinx-build -b apicheck -d {envtmpdir}/doctrees docs docs/_build/apicheck
  28. [testenv:configcheck]
  29. commands =
  30. pip install -U -r{toxinidir}/requirements/dev.txt
  31. sphinx-build -b configcheck -d {envtmpdir}/doctrees docs docs/_build/configcheck
  32. [testenv:linkcheck]
  33. commands =
  34. pip install -U -r{toxinidir}/requirements/dev.txt
  35. sphinx-build -W -b linkcheck -d {envtmpdir}/doctrees docs docs/_build/linkcheck
  36. [testenv:flake8]
  37. commands =
  38. flake8 --exclude=W503 {toxinidir}/celery
  39. [testenv:flakeplus]
  40. commands =
  41. flakeplus --2.7 {toxinidir}/celery