[tox]
envlist =
  py{34,35,36}-django{111,20,dev}-{sqlite,postgres,mysql},
  flake8,
  docs,
  live

[testenv]
skip_install = True
deps = pipenv
commands =
  pipenv install --dev
  postgres: pip install -e .[postgres]
  mysql: pip install -e .[mysql]
  django111: pip install "Django>=1.11,<1.12"
  django20: pip install "Django>=2.0,<2.1"
  djangodev: pip install --pre django
  coverage run testapp/manage.py test --exclude-tag live testapp
  coverage report
setenv =
  PYTHONWARNINGS = all
passenv =
  DATABASE_URL

[testenv:live]
deps = pipenv
commands =
  pipenv install --dev
  coverage run testapp/manage.py test testapp
  coverage report

[testenv:flake8]
skip_install = True
deps =
  flake8
  flake8-bugbear
  flake8-comprehensions
  flake8-quotes
  flake8-import-order
commands = flake8

[testenv:docs]
skip_install = False
deps = -rdocs/requirements.txt
extras=docs
commands =
  make -C docs html
whitelist_externals =
  make

[tox]
envlist =
  py{34,35,36}-django{111,20,dev}-{sqlite,postgres,mysql},
  flake8,
  docs,
  live

[testenv]
skip_install = True
deps = pipenv
commands =
  pipenv install --dev
  postgres: pip install -e .[postgres]
  mysql: pip install -e .[mysql]
  django111: pip install "Django>=1.11,<1.12"
  django20: pip install "Django>=2.0,<2.1"
  djangodev: pip install --pre django
  coverage run testapp/manage.py test --exclude-tag live testapp
  coverage report
passenv =
  DATABASE_URL

[testenv:live]
deps = pipenv
commands =
  pipenv install --dev
  coverage run testapp/manage.py test testapp
  coverage report

[testenv:flake8]
skip_install = True
deps =
  flake8
  flake8-bugbear
  flake8-comprehensions
  flake8-quotes
  flake8-import-order
commands = flake8

[testenv:docs]
skip_install = False
deps = -rdocs/requirements.txt
extras=docs
commands =
  make -C docs html
whitelist_externals =
  make

Reduce verbosity when running tests
Reduce verbosity when running tests
