language: python

python:
  - 3.8

cache:
  pip:
  apt:
  directories:
    - .tox

env:
 - DJANGO="2.0"
 - DJANGO="2.1"
 - DJANGO="2.2"
 - DJANGO="3.0"
 - DJANGO="3.1"

before_install:
 - sudo apt-get update -qq
 - sudo apt-get install -qq $APT

after_failure:
 - cat /home/travis/.pip/pip.log

after_success:
 - coveralls

install:
 - pip install pip wheel
 - pip install tox-travis
 - pip install -q coveralls flake8 tox

script:
 - env | sort
 - tox
 - flake8 --show-source --max-line-length=80 --exclude=.tox,docs,django_comments_xtd/tests,django_comments_xtd/__init__.py,django_comments_xtd/migrations django_comments_xtd/
