tox.ini 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. [tox]
  2. skipsdist = True
  3. usedevelop = True
  4. envlist = py{35,36,37}-dj{21,22,30,30stable,master}-{sqlite,postgres,mysql,mssql}-{elasticsearch7,elasticsearch6,elasticsearch5,elasticsearch2,noelasticsearch},
  5. [testenv]
  6. install_command = pip install -e ".[testing]" -U {opts} {packages}
  7. commands =
  8. elasticsearch2: coverage run runtests.py wagtail.search wagtail.documents wagtail.images --elasticsearch2
  9. elasticsearch5: coverage run runtests.py wagtail.search wagtail.documents wagtail.images --elasticsearch5
  10. elasticsearch6: coverage run runtests.py wagtail.search wagtail.documents wagtail.images --elasticsearch6
  11. elasticsearch7: coverage run runtests.py wagtail.search wagtail.documents wagtail.images --elasticsearch7
  12. noelasticsearch: coverage run runtests.py {posargs}
  13. basepython =
  14. py35: python3.5
  15. py36: python3.6
  16. py37: python3.7
  17. py38: python3.8
  18. deps =
  19. django-sendfile==0.3.6
  20. Embedly
  21. dj21: Django>=2.1,<2.2
  22. dj22: Django>=2.2,<2.3
  23. dj30: Django>=3.0,<3.1
  24. dj30stable: git+https://github.com/django/django.git@stable/3.0.x#egg=Django
  25. dj30stable: git+https://github.com/wagtail/django-modelcluster.git
  26. djmaster: git+https://github.com/django/django.git@master#egg=Django
  27. djmaster: git+https://github.com/wagtail/django-modelcluster.git
  28. postgres: psycopg2>=2.6
  29. mysql: mysqlclient>=1.3.7,<1.4
  30. elasticsearch2: elasticsearch>=2,<3
  31. elasticsearch5: elasticsearch>=5,<6
  32. elasticsearch5: certifi
  33. elasticsearch6: elasticsearch>=6.4.0,<7
  34. elasticsearch6: certifi
  35. elasticsearch7: elasticsearch>=7,<8
  36. elasticsearch7: 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. # Specific for Appveyor, see:
  44. # https://www.appveyor.com/docs/services-databases/#sql-server-2016
  45. mssql: DATABASE_ENGINE=sql_server.pyodbc
  46. mssql: DATABASE_HOST=(local)\SQL2016
  47. mssql: DATABASE_NAME=master
  48. mssql: DATABASE_USER=sa
  49. mssql: DATABASE_PASS=Password12!
  50. [testenv:flake8]
  51. basepython=python3.5
  52. deps=flake8>=2.2.0
  53. commands=flake8 wagtail