language: python

os:
  - linux

python:
  - "2.7"
  - "3.5"
  - "3.6"

matrix:
  include:
    - python: "2.7"
      install: CC=clang python -m pip install . --no-deps -vv
    - python: "3.7"
      install: CC=clang python -m pip install . --no-deps -vv
      dist: xenial
      sudo: true
    # Unfortunately there is currently no way to have these tested on Trusty.
    # This is hack to work around that:
    # https://docs.travis-ci.com/user/languages/python/#development-releases-support
    - python: "3.7"
      dist: xenial
      sudo: true
    - python: "3.7-dev"
      dist: xenial
      sudo: true
    - python: "3.8-dev"
      dist: xenial
      sudo: true
    - python: "nightly"
      dist: xenial
      sudo: true

before_install:
  - python -m pip install pip --upgrade
  - python -m pip install setuptools --upgrade

install:
  - python -m pip install . --no-deps -vv

# command to run tests
script:
  - python -m pytest tests/

language: python

os:
  - linux

python:
  - "2.7"
  - "3.5"
  - "3.6"
  - "3.7"
  - "3.7-dev"
  - "3.8-dev"
  - "nightly"

matrix:
  include:
    - python: "2.7"
      install: CC=clang python -m pip install . --no-deps -vv
    - python: "3.7"
      install: CC=clang python -m pip install . --no-deps -vv

before_install:
  - python -m pip install pip --upgrade
  - python -m pip install setuptools --upgrade

install:
  - python -m pip install . --no-deps -vv

# command to run tests
script:
  - python -m pytest tests/

Remove dist and sudo from matrix.
Travis: Remove dist and sudo from matrix.

It seems this isn't needed anymore.
