tox.ini 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  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. PASSENV =
  39. TRAVIS
  40. basepython =
  41. 2.7: python2.7
  42. 3.4: python3.4
  43. 3.5: python3.5
  44. 3.6: python3.6
  45. pypy: pypy
  46. flake8,flakeplus,apicheck,linkcheck,configcheck,pydocstyle,isort-check: python2.7
  47. [testenv:apicheck]
  48. setenv =
  49. PYTHONHASHSEED = 100
  50. commands =
  51. sphinx-build -j2 -b apicheck -d {envtmpdir}/doctrees docs docs/_build/apicheck
  52. [testenv:configcheck]
  53. commands =
  54. sphinx-build -j2 -b configcheck -d {envtmpdir}/doctrees docs docs/_build/configcheck
  55. [testenv:linkcheck]
  56. commands =
  57. sphinx-build -j2 -b linkcheck -d {envtmpdir}/doctrees docs docs/_build/linkcheck
  58. [testenv:flake8]
  59. commands =
  60. flake8 -j 2 {toxinidir}/celery {toxinidir}/t
  61. [testenv:flakeplus]
  62. commands =
  63. flakeplus --2.7 {toxinidir}/celery {toxinidir}/t
  64. [testenv:pydocstyle]
  65. commands =
  66. pydocstyle {toxinidir}/celery
  67. [testenv:isort-check]
  68. commands = isort --project celery --order-by-type -rc -c {toxinidir}/celery {toxinidir}/t