2
0

tox.ini 2.1 KB

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