tox.ini 2.0 KB

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