You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

tox.ini 1.0KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. [tox]
  2. envlist =
  3. py{35,36}-django{111,20,21}
  4. py36-djangomaster
  5. lint
  6. sandbox
  7. [testenv]
  8. commands = coverage run --parallel -m pytest {posargs}
  9. extras = test
  10. pip_pre = true
  11. deps =
  12. django111: django>=1.11,<2
  13. django20: django>=2.0,<2.1
  14. django21: django>=2.1,<2.2
  15. [testenv:py36-djangomaster]
  16. commands =
  17. # Can't specify this in deps - see https://github.com/tox-dev/tox/issues/513
  18. pip install https://github.com/django/django/archive/master.tar.gz#egg=django
  19. pytest {posargs}
  20. [testenv:coverage-report]
  21. basepython = python3.6
  22. deps = coverage
  23. skip_install = true
  24. commands =
  25. coverage combine
  26. coverage report
  27. [testenv:lint]
  28. basepython = python3.6
  29. deps =
  30. flake8
  31. isort
  32. commands =
  33. npm install
  34. flake8 src tests setup.py
  35. isort -q --recursive --diff src/ tests/
  36. npm run eslint
  37. django-admin.py compilemessages
  38. [testenv:sandbox]
  39. basepython = python3.5
  40. deps =
  41. -r{toxinidir}/requirements.txt
  42. django>=1.11,<2
  43. whitelist_externals = make
  44. commands =
  45. make build_sandbox