tox.ini 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. [tox]
  2. envlist =
  3. {2.7,pypy,3.4,3.5}-unit
  4. {2.7,pypy,3.4,3.5}-integration-{rabbitmq,redis}
  5. flake8
  6. apicheck
  7. configcheck
  8. pydocstyle
  9. [testenv]
  10. deps=
  11. -r{toxinidir}/requirements/default.txt
  12. -r{toxinidir}/requirements/test.txt
  13. 2.7: -r{toxinidir}/requirements/test-ci-default.txt
  14. 3.4,3.5: -r{toxinidir}/requirements/test-ci-default.txt
  15. pypy: -r{toxinidir}/requirements/test-ci-base.txt
  16. integration: -r{toxinidir}/requirements/test-integration.txt
  17. linkcheck,apicheck,configcheck: -r{toxinidir}/requirements/docs.txt
  18. flake8,pydocstyle: -r{toxinidir}/requirements/pkgutils.txt
  19. sitepackages = False
  20. recreate = False
  21. commands =
  22. unit: py.test -xv --cov=celery --cov-report=xml
  23. integration: py.test -xsv t/integration
  24. setenv =
  25. WORKER_LOGLEVEL = INFO
  26. rabbitmq: TEST_BROKER=pyamqp://
  27. rabbitmq: TEST_BACKEND=rpc
  28. redis: TEST_BROKER=redis://
  29. redis: TEST_BACKEND=redis://
  30. basepython =
  31. 2.7: python2.7
  32. 3.4: python3.4
  33. 3.5: python3.5
  34. pypy: pypy
  35. flake8,apicheck,linkcheck,configcheck,pydocstyle: python2.7
  36. [testenv:apicheck]
  37. commands =
  38. sphinx-build -b apicheck -d {envtmpdir}/doctrees docs docs/_build/apicheck
  39. [testenv:configcheck]
  40. commands =
  41. sphinx-build -b configcheck -d {envtmpdir}/doctrees docs docs/_build/configcheck
  42. [testenv:linkcheck]
  43. commands =
  44. sphinx-build -W -b linkcheck -d {envtmpdir}/doctrees docs docs/_build/linkcheck
  45. [testenv:flake8]
  46. commands =
  47. flake8 {toxinidir}/celery {toxinidir}/t
  48. [testenv:pydocstyle]
  49. commands =
  50. pydocstyle {toxinidir}/celery