tox.ini 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. [tox]
  2. skipsdist = True
  3. usedevelop = True
  4. envlist = py{35,36,37}-dj{21,22,22stable,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. dj22stable: git+https://github.com/django/django.git@stable/2.2.x#egg=Django
  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. dj30stable: git+https://github.com/encode/django-rest-framework.git
  27. djmaster: git+https://github.com/django/django.git@master#egg=Django
  28. djmaster: git+https://github.com/wagtail/django-modelcluster.git
  29. djmaster: git+https://github.com/encode/django-rest-framework.git
  30. postgres: psycopg2>=2.6
  31. mysql: mysqlclient>=1.3.7,<1.4
  32. elasticsearch2: elasticsearch>=2,<3
  33. elasticsearch5: elasticsearch>=5,<6
  34. elasticsearch5: certifi
  35. elasticsearch6: elasticsearch>=6.4.0,<7
  36. elasticsearch6: certifi
  37. elasticsearch7: elasticsearch>=7,<8
  38. elasticsearch7: certifi
  39. setenv =
  40. postgres: DATABASE_ENGINE=django.db.backends.postgresql
  41. mysql: DATABASE_ENGINE=django.db.backends.mysql
  42. mysql: DATABASE_HOST=localhost
  43. mysql: DATABASE_USER=root
  44. sqlite: DATABASE_NAME=wagtail.db
  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_PASS=Password12!
  52. [testenv:flake8]
  53. basepython=python3.5
  54. deps=flake8>=2.2.0
  55. commands=flake8 wagtail