tox.ini 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  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. [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. isort-check: -r{toxinidir}/requirements/test-ci-default.txt
  22. isort-check: git+https://github.com/timothycrosley/isort.git
  23. sitepackages = False
  24. recreate = False
  25. commands =
  26. unit: py.test -xv --cov=celery --cov-report=xml
  27. integration: py.test -xsv t/integration
  28. setenv =
  29. WORKER_LOGLEVEL = INFO
  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. basepython =
  39. 2.7: python2.7
  40. 3.4: python3.4
  41. 3.5: python3.5
  42. 3.6: python3.6
  43. pypy: pypy
  44. flake8,flakeplus,apicheck,linkcheck,configcheck,pydocstyle,isort-check: python2.7
  45. [testenv:apicheck]
  46. setenv =
  47. PYTHONHASHSEED = 100
  48. commands =
  49. sphinx-build -j2 -b apicheck -d {envtmpdir}/doctrees docs docs/_build/apicheck
  50. [testenv:configcheck]
  51. commands =
  52. sphinx-build -j2 -b configcheck -d {envtmpdir}/doctrees docs docs/_build/configcheck
  53. [testenv:linkcheck]
  54. commands =
  55. sphinx-build -j2 -b linkcheck -d {envtmpdir}/doctrees docs docs/_build/linkcheck
  56. [testenv:flake8]
  57. commands =
  58. flake8 -j 2 {toxinidir}/celery {toxinidir}/t
  59. [testenv:flakeplus]
  60. commands =
  61. flakeplus --2.7 {toxinidir}/celery {toxinidir}/t
  62. [testenv:pydocstyle]
  63. commands =
  64. pydocstyle {toxinidir}/celery
  65. [testenv:isort-check]
  66. commands = isort --project celery --order-by-type -rc -c {toxinidir}/celery {toxinidir}/t