tox.ini 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. [tox]
  2. skipsdist = True
  3. usedevelop = True
  4. envlist = py{27,33,34,35}-dj{18,19}-{sqlite,postgres,mysql}-{elasticsearch2,elasticsearch,noelasticsearch},
  5. py{27,34,35}-dj{110,110head}-{sqlite,postgres,mysql}-{elasticsearch2,elasticsearch,noelasticsearch},
  6. flake8
  7. [testenv]
  8. install_command = pip install -e ".[testing]" -U {opts} {packages}
  9. commands =
  10. elasticsearch: coverage run runtests.py wagtail.wagtailsearch wagtail.wagtaildocs wagtail.wagtailimages --elasticsearch
  11. elasticsearch2: coverage run runtests.py wagtail.wagtailsearch wagtail.wagtaildocs wagtail.wagtailimages --elasticsearch2
  12. noelasticsearch: coverage run runtests.py
  13. basepython =
  14. py27: python2.7
  15. py33: python3.3
  16. py34: python3.4
  17. py35: python3.5
  18. deps =
  19. django-sendfile==0.3.6
  20. Embedly
  21. dj18: Django>=1.8.1,<1.9
  22. dj19: Django>=1.9,<1.10
  23. dj110: Django>=1.10a1,<1.11
  24. dj110head: git+https://github.com/django/django.git@stable/1.10.x#egg=Django
  25. postgres: psycopg2>=2.6
  26. mysql: mysqlclient==1.3.6
  27. elasticsearch: elasticsearch>=1,<2
  28. elasticsearch2: elasticsearch>=2,<3
  29. setenv =
  30. postgres: DATABASE_ENGINE=django.db.backends.postgresql_psycopg2
  31. mysql: DATABASE_ENGINE=django.db.backends.mysql
  32. mysql: DATABASE_USER=wagtail
  33. mysql: DATABASE_HOST=localhost
  34. mysql: DATABASE_USER=root
  35. [testenv:flake8]
  36. basepython=python3.4
  37. deps=flake8>=2.2.0
  38. commands=flake8 wagtail