language: python
dist: xenial # Python 3.7 requires xenial because of dependencies

python:
    - "3.5"
    - "3.6"
    - "3.7"

env:
    - DJANGO=2.0.8
    - DJANGO=2.1.1

install:
    - pip install -q Django==$DJANGO
    - pip install -q -r requirements.txt
    - pip install -q -r requirements-testing.txt

before_script:
    - "pycodestyle --exclude=migrations --ignore=E501,W503,W504 helpdesk"

script:
    - coverage run --source='.' quicktest.py helpdesk

after_success:
    - codecov
