tox.ini 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  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: 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. 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,flakeplus,apicheck,linkcheck,configcheck,pydocstyle,isort-check,bandit: 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
  75. [testenv:isort-check]
  76. commands = isort -j2 --project celery --diff --order-by-type -rc -c {toxinidir}/celery {toxinidir}/t