language: python
python:
  - "3.4"
  - "3.5"
  - "3.6"
  - "3.7"
env:
  - DRF_VERSION=3.7.7
  - DRF_VERSION=3.6.4
  - DRF_VERSION=3.5.4
# command to install dependencies
install:
  - pip install -r requirements-dev.txt
  - pip install -q djangorestframework==$DRF_VERSION
# command to run tests
script:
  cd testproject && pytest

language: python
dist: xenial
python:
  - "3.4"
  - "3.5"
  - "3.6"
  - "3.7"
env:
  - DRF_VERSION=3.7.7
  - DRF_VERSION=3.6.4
  - DRF_VERSION=3.5.4
# command to install dependencies
install:
  - pip install -r requirements-dev.txt
  - pip install -q djangorestframework==$DRF_VERSION
# command to run tests
script:
  cd testproject && pytest

Use dist Xenial to support Python 3.7
Use dist Xenial to support Python 3.7
