tox.ini 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. [tox]
  2. envlist =
  3. py37-dj{31,30,22,21,20,111}-postgres
  4. py36-dj{31,30,22,21,20,111,110,19,18}-postgres
  5. py35-dj{22,21,20,111,110,19,18}-postgres
  6. py34-dj{20,111,110}-postgres
  7. py27-dj{111,110}-{mysql_innodb,mysql_myisam,postgres}
  8. py27-dj{111,110,19,18}-postgres
  9. checkqa
  10. [testenv]
  11. extras = testing
  12. deps =
  13. djmaster: https://github.com/django/django/archive/master.tar.gz
  14. dj31: Django>=3.1rc1,<3.2
  15. dj30: Django>=3.0,<3.1
  16. dj22: Django>=2.2,<2.3
  17. dj21: Django>=2.1,<2.2
  18. dj20: Django>=2.0,<2.1
  19. dj111: Django>=1.11,<1.12
  20. dj110: Django>=1.10,<1.11
  21. dj19: Django>=1.9,<1.10
  22. dj18: Django>=1.8,<1.9
  23. mysql_myisam: mysqlclient==1.4.2.post1
  24. mysql_innodb: mysqlclient==1.4.2.post1
  25. postgres: psycopg2-binary
  26. coverage: coverage-enable-subprocess
  27. pytest41: pytest>=4.1,<4.2
  28. pytest41: attrs==17.4.0
  29. pytest53: pytest>=5.3,<5.4
  30. xdist: pytest-xdist>=1.15
  31. setenv =
  32. PYTHONPATH = {toxinidir}:{env:PYTHONPATH:}
  33. mysql_innodb: DJANGO_SETTINGS_MODULE=pytest_django_test.settings_mysql_innodb
  34. mysql_myisam: DJANGO_SETTINGS_MODULE=pytest_django_test.settings_mysql_myisam
  35. postgres: DJANGO_SETTINGS_MODULE=pytest_django_test.settings_postgres
  36. sqlite: DJANGO_SETTINGS_MODULE=pytest_django_test.settings_sqlite
  37. sqlite_file: DJANGO_SETTINGS_MODULE=pytest_django_test.settings_sqlite_file
  38. coverage: PYTESTDJANGO_TEST_RUNNER=coverage run -m pytest
  39. coverage: COVERAGE_PROCESS_START={toxinidir}/.coveragerc
  40. coverage: COVERAGE_FILE={toxinidir}/.coverage
  41. coverage: PYTESTDJANGO_COVERAGE_SRC={toxinidir}/
  42. passenv = PYTEST_ADDOPTS TERM
  43. usedevelop = True
  44. commands =
  45. coverage: coverage erase
  46. {env:PYTESTDJANGO_TEST_RUNNER:pytest} {posargs:tests}
  47. coverage: coverage combine
  48. coverage: coverage report
  49. coverage: coverage xml
  50. [testenv:checkqa]
  51. extras =
  52. deps =
  53. flake8
  54. commands =
  55. flake8 --version
  56. flake8 --statistics {posargs:pytest_django pytest_django_test tests}
  57. [testenv:doc8]
  58. extras =
  59. basepython = python3.6
  60. skip_install = true
  61. deps =
  62. sphinx
  63. doc8
  64. commands =
  65. doc8 docs/
  66. [testenv:docs]
  67. deps =
  68. extras = docs
  69. commands = sphinx-build -n -W -b html -d docs/_build/doctrees docs docs/_build/html
  70. [testenv:readme]
  71. extras =
  72. basepython = python3.5
  73. deps =
  74. readme_renderer
  75. commands =
  76. python setup.py check -r -s