[tox]
envlist = py{35,36}-django19
skipsdist = True

[tox:travis]
3.5 = py35
3.6 = py36

[testenv]
passenv = *
deps = -rrequirements.txt
setenv =
    RUN_ENV=test

commands =
  - python manage.py check
    # pytest --flake
    pytest -x --cov-report= --cov
    # pytest --pep8

[tox]
envlist = py{35,36}-django19
skipsdist = True

[tox:travis]
3.5 = py35
3.6 = py36

[testenv]
passenv = *
deps = -rrequirements.txt
setenv =
    RUN_ENV=test

commands =
  - python manage.py check
  - python manage.py makemigrations --dry-run
    # pytest --flake
    pytest -x --cov-report= --cov
    # pytest --pep8

Test that makemigrations can run
Test that makemigrations can run

This is because 3rd party packages can have problems with their migrations that cause problems in production and when making migrations. Doing a dry run after installing requirements and before running tests should prevent this.