tox.ini 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. [tox]
  2. envlist =
  3. {2.7,pypy,3.4,3.5,pypy3}-{unit,integration}
  4. flake8
  5. flakeplus
  6. apicheck
  7. configcheck
  8. pydocstyle
  9. cov
  10. [testenv]
  11. deps=
  12. -r{toxinidir}/requirements/default.txt
  13. -r{toxinidir}/requirements/test.txt
  14. 2.7,cov: -r{toxinidir}/requirements/test-ci-default.txt
  15. 3.4,3.5: -r{toxinidir}/requirements/test-ci-default.txt
  16. pypy,pypy3: -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. pip install -U -r{toxinidir}/requirements/dev.txt
  24. unit: py.test -xv
  25. integration: py.test -xsv t/integration
  26. setenv =
  27. WORKER_LOGLEVEL = INFO
  28. basepython =
  29. 2.7: python2.7
  30. 3.4: python3.4
  31. 3.5: python3.5
  32. pypy: pypy
  33. pypy3: pypy3
  34. flake8,flakeplus,apicheck,linkcheck,configcheck,pydocstyle,cov: python2.7
  35. [testenv:redis]
  36. setenv =
  37. TEST_BROKER = redis://
  38. TEST_BACKEND = redis://
  39. [testenv:rabbitmq]
  40. setenv =
  41. TEST_BROKER = pyamqp://
  42. TEST_BACKEND = rpc
  43. [testenv:cov]
  44. commands =
  45. pip install -U -r{toxinidir}/requirements/dev.txt
  46. py.test -xv --cov=celery --cov-report=xml
  47. coverage xml
  48. codecov -e TOXENV --token=bb6ecc30-6d40-4f57-942e-406f5f579198 --required
  49. [testenv:apicheck]
  50. commands =
  51. pip install -U -r{toxinidir}/requirements/dev.txt
  52. sphinx-build -b apicheck -d {envtmpdir}/doctrees docs docs/_build/apicheck
  53. [testenv:configcheck]
  54. commands =
  55. pip install -U -r{toxinidir}/requirements/dev.txt
  56. sphinx-build -b configcheck -d {envtmpdir}/doctrees docs docs/_build/configcheck
  57. [testenv:linkcheck]
  58. commands =
  59. pip install -U -r{toxinidir}/requirements/dev.txt
  60. sphinx-build -W -b linkcheck -d {envtmpdir}/doctrees docs docs/_build/linkcheck
  61. [testenv:flake8]
  62. commands =
  63. flake8 {toxinidir}/celery {toxinidir}/t
  64. [testenv:flakeplus]
  65. commands =
  66. flakeplus --2.7 {toxinidir}/celery {toxinidir}/t
  67. [testenv:pydocstyle]
  68. commands =
  69. pydocstyle {toxinidir}/celery