language: python
python:
  - "2.7"
cache: pip

install:
  - pip install flake8 pytest websocket-client

before_script:
  # stop the build if there are Python syntax errors or undefined names
  - flake8 .
  # exit-zero treats all errors as warnings.
  - flake8 . --exit-zero --select=C,E,F,W

script:
  - python -m pytest

notifications:
  irc: "chat.freenode.net#wee-slack-dev"
  email: false

dist: xenial
language: python
python:
  - "2.7"
  - "3.7"
cache: pip

install:
  - pip install flake8 pytest websocket-client

before_script:
  # stop the build if there are Python syntax errors or undefined names
  - flake8 .
  # exit-zero treats all errors as warnings.
  - flake8 . --exit-zero --select=C,E,F,W

script:
  - python -m pytest

notifications:
  irc: "chat.freenode.net#wee-slack-dev"
  email: false

Enable testing in python 3 on Travis
Enable testing in python 3 on Travis

Use Ubuntu Xenial (16.04), since the default (Trusty, 14.04) doesn't
have python 3.7.
