tox.ini 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. [tox]
  2. envlist =
  3. {2.7,pypy,3.4,3.5,3.6}-unit
  4. {2.7,pypy,3.4,3.5,3.6}-integration-{rabbitmq,redis,dynamodb}
  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,3.6: -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. dynamodb: TEST_BROKER=redis://
  32. dynamodb: TEST_BACKEND=dynamodb://@localhost:8000
  33. dynamodb: AWS_ACCESS_KEY_ID=test_aws_key_id
  34. dynamodb: AWS_SECRET_ACCESS_KEY=test_aws_secret_key
  35. basepython =
  36. 2.7: python2.7
  37. 3.4: python3.4
  38. 3.5: python3.5
  39. 3.6: python3.6
  40. pypy: pypy
  41. flake8,flakeplus,apicheck,linkcheck,configcheck,pydocstyle: python2.7
  42. [testenv:apicheck]
  43. setenv =
  44. PYTHONHASHSEED = 100
  45. commands =
  46. sphinx-build -b apicheck -d {envtmpdir}/doctrees docs docs/_build/apicheck
  47. [testenv:configcheck]
  48. commands =
  49. sphinx-build -b configcheck -d {envtmpdir}/doctrees docs docs/_build/configcheck
  50. [testenv:linkcheck]
  51. commands =
  52. sphinx-build -W -b linkcheck -d {envtmpdir}/doctrees docs docs/_build/linkcheck
  53. [testenv:flake8]
  54. commands =
  55. flake8 {toxinidir}/celery {toxinidir}/t
  56. [testenv:flakeplus]
  57. commands =
  58. flakeplus --2.7 {toxinidir}/celery {toxinidir}/t
  59. [testenv:pydocstyle]
  60. commands =
  61. pydocstyle {toxinidir}/celery