# Config file for automatic testing at travis-ci.org

language: python

cache: pip

# diferrent python versions
python:
  - "2.7"
  - "3.4"
  - "3.5"
  - "3.6"

# diferrent django versions
env:
  - DJANGO_VERSION=1.8.*
  - DJANGO_VERSION=1.9.*
  - DJANGO_VERSION=1.10.*
  - DJANGO_VERSION=1.11.*
  - DJANGO_VERSION=2.0.*
  - DJANGO_VERIONS=2.1.*

# install dependencies
install:
  - pip install -r requirements-debug.txt
  - |
    if [[ $DJANGO_VERSION =~ ^2.*$ && $TRAVIS_PYTHON_VERSION == "2.7" ]]; then
      echo "Installing Django 2 in python 2 will fail. Keep the installed one"
    else
      pip install Django==$DJANGO_VERSION
    fi

# print pip packages
before_script:
  - pip freeze

# run tests
script:
  - flake8 .
  - isort -c -df
  - PYTHONPATH=`pwd` py.test --cov-report html --cov=admin_view_permission -v tests/

# report coverage to coveralls.io
after_success: coveralls

# Config file for automatic testing at travis-ci.org

language: python

cache: pip

# diferrent python versions
python:
  - "2.7"
  - "3.4"
  - "3.6"

# diferrent django versions
env:
  - DJANGO_VERSION=1.8.*
  - DJANGO_VERSION=1.9.*
  - DJANGO_VERSION=1.10.*
  - DJANGO_VERSION=1.11.*
  - DJANGO_VERSION=2.0.*
  - DJANGO_VERIONS=2.1.*

# install dependencies
install:
  - pip install -r requirements-debug.txt
  - |
    if [[ $DJANGO_VERSION =~ ^2.*$ && $TRAVIS_PYTHON_VERSION == "2.7" ]]; then
      echo "Installing Django 2 in python 2 will fail. Keep the installed one"
    else
      pip install Django==$DJANGO_VERSION
    fi

# print pip packages
before_script:
  - pip freeze

# run tests
script:
  - flake8 .
  - isort -c -df
  - PYTHONPATH=`pwd` py.test --cov-report html --cov=admin_view_permission -v tests/

# report coverage to coveralls.io
after_success: coveralls

Drop tests for p35 as it fails with isort.
Drop tests for p35 as it fails with isort.
