tox.ini 1.7 KB

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