tox.ini 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  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: isort
  22. sitepackages = False
  23. recreate = False
  24. commands =
  25. unit: py.test -xv --cov=celery --cov-report=xml
  26. integration: py.test -xsv t/integration
  27. setenv =
  28. WORKER_LOGLEVEL = INFO
  29. rabbitmq: TEST_BROKER=pyamqp://
  30. rabbitmq: TEST_BACKEND=rpc
  31. redis: TEST_BROKER=redis://
  32. redis: TEST_BACKEND=redis://
  33. dynamodb: TEST_BROKER=redis://
  34. dynamodb: TEST_BACKEND=dynamodb://@localhost:8000
  35. dynamodb: AWS_ACCESS_KEY_ID=test_aws_key_id
  36. dynamodb: AWS_SECRET_ACCESS_KEY=test_aws_secret_key
  37. basepython =
  38. 2.7: python2.7
  39. 3.4: python3.4
  40. 3.5: python3.5
  41. 3.6: python3.6
  42. pypy: pypy
  43. flake8,flakeplus,apicheck,linkcheck,configcheck,pydocstyle,isort-check: python2.7
  44. [testenv:apicheck]
  45. setenv =
  46. PYTHONHASHSEED = 100
  47. commands =
  48. sphinx-build -b apicheck -d {envtmpdir}/doctrees docs docs/_build/apicheck
  49. [testenv:configcheck]
  50. commands =
  51. sphinx-build -b configcheck -d {envtmpdir}/doctrees docs docs/_build/configcheck
  52. [testenv:linkcheck]
  53. commands =
  54. sphinx-build -W -b linkcheck -d {envtmpdir}/doctrees docs docs/_build/linkcheck
  55. [testenv:flake8]
  56. commands =
  57. flake8 {toxinidir}/celery {toxinidir}/t
  58. [testenv:flakeplus]
  59. commands =
  60. flakeplus --2.7 {toxinidir}/celery {toxinidir}/t
  61. [testenv:pydocstyle]
  62. commands =
  63. pydocstyle {toxinidir}/celery
  64. [testenv:isort-check]
  65. commands = isort -rc -c {toxinidir}/celery {toxinidir}/t