tox.ini 2.0 KB

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