sudo: required
dist: trusty
language: python
env:
  - TOXENV=py26
  - TOXENV=py27
  - TOXENV=py34
  - TOXENV=py35
  - TOXENV=py36
  - TOXENV=py37
install:
  - scripts/travis.sh
  - make install
  - pip-accel install coveralls tox
  - pip-accel install -r requirements-checks.txt
script:
  - make check
  - make tox
after_success:
  - coveralls
branches:
  except:
    - /^[0-9]/

sudo: required
dist: trusty
language: python
matrix:
  include:
    - env: TOXENV=py26
    - env: TOXENV=py27
    - env: TOXENV=py34
    - env: TOXENV=py35
    - env: TOXENV=py36
    - env: TOXENV=py37
      dist: xenial
install:
  - scripts/travis.sh
  - make install
  - pip-accel install coveralls tox
  - pip-accel install -r requirements-checks.txt
script:
  - make check
  - make tox
after_success:
  - coveralls
branches:
  except:
    - /^[0-9]/

Configure Travis CI to test Python 3.7 on Ubuntu 16.04
Configure Travis CI to test Python 3.7 on Ubuntu 16.04

This is a follow-up to this build failure:

https://travis-ci.org/paylogic/py2deb/builds/456412859

Pip complains that Python was built without ssl support and apparently
this is because Python 3.7 is incompatible with the ssl version on
Ubuntu 14.04 (still the default on Travis CI). Switching to xenial has
solved this for me in other projects (deb-pkg-tools, executor,
humanfriendly) so I'm hoping it will work the same here 😇.
