[tox]
envlist =
    py27-django{18,19,110,111}
    py34-django{18,19,110,111,200}
    py35-django{18,19,110,111,200,trunk}
    py36-django{111,200,trunk}

[testenv]
deps =
    django18: Django>=1.8,<1.9
    django19: Django>=1.9,<1.10
    django110: Django>=1.10,<1.11
    django111: Django>=1.11,<1.12
    django200: Django>=2.0,<2.1
    djangotrunk: https://github.com/django/django/archive/master.tar.gz
    freezegun == 0.3.8
    -rrequirements-test.txt
    pytest-cov
ignore_outcome =
    djangotrunk: True
passenv =
  CI
  TRAVIS
  TRAVIS_*

commands =
    pip install -e .
    py.test {posargs}

[tox]
envlist =
    py27-django{18,19,110,111}
    py34-django{18,19,110,111,200}
    py35-django{18,19,110,111,200,trunk}
    py36-django{111,200,trunk}
    flake8

[testenv]
deps =
    django18: Django>=1.8,<1.9
    django19: Django>=1.9,<1.10
    django110: Django>=1.10,<1.11
    django111: Django>=1.11,<1.12
    django200: Django>=2.0,<2.1
    djangotrunk: https://github.com/django/django/archive/master.tar.gz
    freezegun == 0.3.8
    -rrequirements-test.txt
    pytest-cov
ignore_outcome =
    djangotrunk: True
passenv =
    CI
    TRAVIS
    TRAVIS_*

commands =
    pip install -e .
    py.test {posargs}

[testenv:flake8]
basepython =
    python3.6
deps =
    flake8
commands =
    flake8 model_utils tests

Add a flake8 environment to ensure pep8 compatibility.
Add a flake8 environment to ensure pep8 compatibility.
