2
0

tox.ini 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. [tox]
  2. skipsdist = True
  3. usedevelop = True
  4. envlist = py{37,38,39,310}-dj{32,40stable,main}-{sqlite,postgres,mysql,mssql}-{elasticsearch7,elasticsearch6,elasticsearch5,noelasticsearch}-{customuser,emailuser}-{tz,notz},
  5. [testenv]
  6. install_command = pip install -e ".[testing]" -U {opts} {packages}
  7. commands =
  8. elasticsearch5: coverage run runtests.py wagtail.search wagtail.documents wagtail.images --elasticsearch5
  9. elasticsearch6: coverage run runtests.py wagtail.search wagtail.documents wagtail.images --elasticsearch6
  10. elasticsearch7: coverage run runtests.py wagtail.search wagtail.documents wagtail.images --elasticsearch7
  11. noelasticsearch: coverage run runtests.py {posargs}
  12. basepython =
  13. py37: python3.7
  14. py38: python3.8
  15. py39: python3.9
  16. py310: python3.10
  17. deps =
  18. django-sendfile==0.3.6
  19. Embedly
  20. dj32: Django~=3.2.0
  21. dj40stable: git+https://github.com/django/django.git@stable/4.0.x#egg=Django
  22. djmain: git+https://github.com/django/django.git@main#egg=Django
  23. postgres: psycopg2>=2.6
  24. mysql: mysqlclient>=1.4,<2
  25. elasticsearch5: elasticsearch>=5,<6
  26. elasticsearch5: certifi
  27. elasticsearch6: elasticsearch>=6.4.0,<7
  28. elasticsearch6: certifi
  29. elasticsearch7: elasticsearch>=7,<8
  30. elasticsearch7: certifi
  31. setenv =
  32. postgres: DATABASE_ENGINE=django.db.backends.postgresql
  33. mysql: DATABASE_ENGINE=django.db.backends.mysql
  34. mysql: DATABASE_HOST=localhost
  35. mysql: DATABASE_USER=root
  36. sqlite: DATABASE_NAME=wagtail.db
  37. emailuser: USE_EMAIL_USER_MODEL=yes
  38. notz: DISABLE_TIMEZONE=yes
  39. # Specific for Appveyor, see:
  40. # https://www.appveyor.com/docs/services-databases/#sql-server-2016
  41. mssql: DATABASE_ENGINE=sql_server.pyodbc
  42. mssql: DATABASE_HOST=(local)\SQL2016
  43. mssql: DATABASE_NAME=master
  44. mssql: DATABASE_USER=sa
  45. mssql: DATABASE_PASSWORD=Password12!
  46. [testenv:flake8]
  47. basepython=python3.7
  48. deps=flake8>=3.6.0
  49. commands=flake8