tox.ini 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  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: git+https://github.com/timothycrosley/isort.git
  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. rabbitmq: TEST_BROKER=pyamqp://
  33. rabbitmq: TEST_BACKEND=rpc
  34. redis: TEST_BROKER=redis://
  35. redis: TEST_BACKEND=redis://
  36. dynamodb: TEST_BROKER=redis://
  37. dynamodb: TEST_BACKEND=dynamodb://@localhost:8000
  38. dynamodb: AWS_ACCESS_KEY_ID=test_aws_key_id
  39. dynamodb: AWS_SECRET_ACCESS_KEY=test_aws_secret_key
  40. PASSENV =
  41. TRAVIS
  42. basepython =
  43. 2.7: python2.7
  44. 3.4: python3.4
  45. 3.5: python3.5
  46. 3.6: python3.6
  47. pypy: pypy
  48. flake8,flakeplus,apicheck,linkcheck,configcheck,pydocstyle,isort-check,bandit: python2.7
  49. usedevelop = True
  50. [testenv:apicheck]
  51. setenv =
  52. PYTHONHASHSEED = 100
  53. commands =
  54. sphinx-build -j2 -b apicheck -d {envtmpdir}/doctrees docs docs/_build/apicheck
  55. [testenv:configcheck]
  56. commands =
  57. sphinx-build -j2 -b configcheck -d {envtmpdir}/doctrees docs docs/_build/configcheck
  58. [testenv:linkcheck]
  59. commands =
  60. sphinx-build -j2 -b linkcheck -d {envtmpdir}/doctrees docs docs/_build/linkcheck
  61. [testenv:bandit]
  62. commands =
  63. bandit -b bandit.json -r celery/
  64. [testenv:flake8]
  65. commands =
  66. flake8 -j 2 {toxinidir}/celery {toxinidir}/t
  67. [testenv:flakeplus]
  68. commands =
  69. flakeplus --2.7 {toxinidir}/celery {toxinidir}/t
  70. [testenv:pydocstyle]
  71. commands =
  72. pydocstyle {toxinidir}/celery
  73. [testenv:isort-check]
  74. commands = isort --project celery --diff --order-by-type -rc -c {toxinidir}/celery {toxinidir}/t