language: python
sudo: false

matrix:
  include:
    # Lint
    - python: 2.7
      env: TOXENV=lint
    - python: 3.7
      env: TOXENV=lint
      sudo: required
      dist: xenial

    # Packaging
    - python: 2.7
      env: TOXENV=packaging
    - python: 3.6
      env: TOXENV=packaging

cache:
  - pip
  - directories:
    - ${HOME}/.cache

install:
  - python -m pip install -U tox setuptools pip

script:
  - tox

notifications:
  email: false

branches:
  only:
  - master
