tox.ini 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  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,azureblockblob}
  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: py.test -xv --cov=celery --cov-report=xml --cov-report term
  30. integration: py.test -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. azureblockblob: TEST_BROKER=redis://
  43. azureblockblob: TEST_BACKEND=azureblockblob://DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://127.0.0.1:10000/devstoreaccount1;
  44. passenv =
  45. TRAVIS
  46. AZUREBLOCKBLOB_URL
  47. basepython =
  48. 2.7: python2.7
  49. 3.4: python3.4
  50. 3.5: python3.5
  51. 3.6: python3.6
  52. pypy: pypy
  53. flake8,apicheck,linkcheck,configcheck,pydocstyle,isort-check,bandit: python3.6
  54. flakeplus: python2.7
  55. usedevelop = True
  56. [testenv:apicheck]
  57. setenv =
  58. PYTHONHASHSEED = 100
  59. commands =
  60. sphinx-build -j2 -b apicheck -d {envtmpdir}/doctrees docs docs/_build/apicheck
  61. [testenv:configcheck]
  62. commands =
  63. sphinx-build -j2 -b configcheck -d {envtmpdir}/doctrees docs docs/_build/configcheck
  64. [testenv:linkcheck]
  65. commands =
  66. sphinx-build -j2 -b linkcheck -d {envtmpdir}/doctrees docs docs/_build/linkcheck
  67. [testenv:bandit]
  68. commands =
  69. bandit -b bandit.json -r celery/
  70. [testenv:flake8]
  71. commands =
  72. flake8 -j 2 {toxinidir}/celery {toxinidir}/t
  73. [testenv:flakeplus]
  74. commands =
  75. flakeplus --2.7 {toxinidir}/celery {toxinidir}/t
  76. [testenv:pydocstyle]
  77. commands =
  78. pydocstyle {toxinidir}/celery
  79. [testenv:isort-check]
  80. commands = isort -j2 --project celery --diff --order-by-type -rc -c {toxinidir}/celery {toxinidir}/t