tox.ini 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. # Tox (http://tox.testrun.org/) is a tool for running tests
  2. # in multiple virtualenvs. This configuration file will run the
  3. # test suite on all supported python versions. To use it, "pip install tox"
  4. # and then run "tox" from this directory.
  5. [tox]
  6. envlist =
  7. precommit
  8. safety
  9. {py27,py34,py35,py36}-flake8
  10. {py27,py33,py34,py36,pypy,pypy3}-dj18
  11. {py27,py34,py35,py36,pypy}-dj{dj110,dj111,master}
  12. [testenv]
  13. commands = make test
  14. whitelist_externals = make
  15. deps =
  16. dj18: Django>=1.8,<1.9
  17. dj110: Django>=1.10,<1.11
  18. dj111: Django>=1.11b1,<1.12
  19. djmaster: https://github.com/django/django/archive/master.tar.gz
  20. shortuuid==0.4
  21. python-dateutil
  22. pytest-django
  23. pytest-cov
  24. py27: python-keyczar
  25. mock
  26. [testenv:precommit]
  27. deps =
  28. pre-commit
  29. commands = pre-commit run -a
  30. [testenv:safety]
  31. deps =
  32. safety
  33. commands = safety check --full-report
  34. [testenv:py27-flake8]
  35. deps =
  36. flake8
  37. commands = flake8 django_extensions tests
  38. [testenv:py34-flake8]
  39. deps =
  40. flake8
  41. commands = flake8 django_extensions tests
  42. [testenv:py35-flake8]
  43. deps =
  44. flake8
  45. commands = flake8 django_extensions tests