tox.ini 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  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. isort-check
  11. bandit
  12. [testenv]
  13. deps=
  14. -r{toxinidir}/requirements/default.txt
  15. -r{toxinidir}/requirements/test.txt
  16. 2.7: -r{toxinidir}/requirements/test-ci-default.txt
  17. 3.4,3.5,3.6: -r{toxinidir}/requirements/test-ci-default.txt
  18. pypy: -r{toxinidir}/requirements/test-ci-base.txt
  19. integration: -r{toxinidir}/requirements/test-integration.txt
  20. linkcheck,apicheck,configcheck: -r{toxinidir}/requirements/docs.txt
  21. flake8,flakeplus,pydocstyle: -r{toxinidir}/requirements/pkgutils.txt
  22. isort-check: -r{toxinidir}/requirements/test-ci-default.txt
  23. isort-check: isort>=4.3.4
  24. isort-check: Sphinx==1.6.5
  25. bandit: bandit
  26. sitepackages = False
  27. recreate = False
  28. commands =
  29. unit: pytest -rsx -xv --cov=celery --cov-report=xml --cov-report term t/unit
  30. integration: pytest -rsx -xsv t/integration
  31. setenv =
  32. WORKER_LOGLEVEL = INFO
  33. PYTHONIOENCODING = UTF-8
  34. rabbitmq: TEST_BROKER=pyamqp://
  35. rabbitmq: TEST_BACKEND=rpc
  36. redis: TEST_BROKER=redis://
  37. redis: TEST_BACKEND=redis://
  38. dynamodb: TEST_BROKER=redis://
  39. dynamodb: TEST_BACKEND=dynamodb://@localhost:8000
  40. dynamodb: AWS_ACCESS_KEY_ID=test_aws_key_id
  41. dynamodb: AWS_SECRET_ACCESS_KEY=test_aws_secret_key
  42. PASSENV =
  43. TRAVIS
  44. basepython =
  45. 2.7: python2.7
  46. 3.4: python3.4
  47. 3.5: python3.5
  48. 3.6: python3.6
  49. pypy: pypy
  50. flake8,apicheck,linkcheck,configcheck,pydocstyle,isort-check,bandit: python3.6
  51. flakeplus: python2.7
  52. usedevelop = True
  53. [testenv:apicheck]
  54. setenv =
  55. PYTHONHASHSEED = 100
  56. commands =
  57. sphinx-build -j2 -b apicheck -d {envtmpdir}/doctrees docs docs/_build/apicheck
  58. [testenv:configcheck]
  59. commands =
  60. sphinx-build -j2 -b configcheck -d {envtmpdir}/doctrees docs docs/_build/configcheck
  61. [testenv:linkcheck]
  62. commands =
  63. sphinx-build -j2 -b linkcheck -d {envtmpdir}/doctrees docs docs/_build/linkcheck
  64. [testenv:bandit]
  65. commands =
  66. bandit -b bandit.json -r celery/
  67. [testenv:flake8]
  68. commands =
  69. flake8 -j 2 {toxinidir}/celery {toxinidir}/t
  70. [testenv:flakeplus]
  71. commands =
  72. flakeplus --2.7 {toxinidir}/celery {toxinidir}/t
  73. [testenv:pydocstyle]
  74. commands =
  75. pydocstyle {toxinidir}/celery
  76. [testenv:isort-check]
  77. commands = isort -j2 --project celery --diff --order-by-type -rc -c {toxinidir}/celery {toxinidir}/t