tox.ini 2.5 KB

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