tox.ini 1.9 KB

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