tox.ini 2.4 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}
  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. bandit: bandit
  25. sitepackages = False
  26. recreate = False
  27. commands =
  28. unit: py.test -xv --cov=celery --cov-report=xml --cov-report term
  29. integration: py.test -xsv t/integration
  30. setenv =
  31. WORKER_LOGLEVEL = INFO
  32. PYTHONIOENCODING = UTF-8
  33. rabbitmq: TEST_BROKER=pyamqp://
  34. rabbitmq: TEST_BACKEND=rpc
  35. redis: TEST_BROKER=redis://
  36. redis: TEST_BACKEND=redis://
  37. dynamodb: TEST_BROKER=redis://
  38. dynamodb: TEST_BACKEND=dynamodb://@localhost:8000
  39. dynamodb: AWS_ACCESS_KEY_ID=test_aws_key_id
  40. dynamodb: AWS_SECRET_ACCESS_KEY=test_aws_secret_key
  41. PASSENV =
  42. TRAVIS
  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,flakeplus,apicheck,linkcheck,configcheck,pydocstyle,isort-check,bandit: python2.7
  50. usedevelop = True
  51. [testenv:apicheck]
  52. setenv =
  53. PYTHONHASHSEED = 100
  54. commands =
  55. sphinx-build -j2 -b apicheck -d {envtmpdir}/doctrees docs docs/_build/apicheck
  56. [testenv:configcheck]
  57. commands =
  58. sphinx-build -j2 -b configcheck -d {envtmpdir}/doctrees docs docs/_build/configcheck
  59. [testenv:linkcheck]
  60. commands =
  61. sphinx-build -j2 -b linkcheck -d {envtmpdir}/doctrees docs docs/_build/linkcheck
  62. [testenv:bandit]
  63. commands =
  64. bandit -b bandit.json -r celery/
  65. [testenv:flake8]
  66. commands =
  67. flake8 -j 2 {toxinidir}/celery {toxinidir}/t
  68. [testenv:flakeplus]
  69. commands =
  70. flakeplus --2.7 {toxinidir}/celery {toxinidir}/t
  71. [testenv:pydocstyle]
  72. commands =
  73. pydocstyle {toxinidir}/celery
  74. [testenv:isort-check]
  75. commands = isort -j2 --skip celery/utils/deprecated.py --project celery --diff --order-by-type -rc -c {toxinidir}/celery {toxinidir}/t