Use 'dist: xenial' in Travis to simplify configuration

Allows using Python version 3.7 without sudo declarations.

Travis officially added support for Xenial on 2018-11-08.

https://blog.travis-ci.com/2018-11-08-xenial-release
This commit is contained in:
Jon Dufresne 2018-12-09 09:27:26 -08:00
parent b13a6ff3e6
commit 96f6c950dd

View File

@ -1,6 +1,6 @@
language: python
sudo: false
dist: trusty
dist: xenial
cache: pip
env:
@ -20,12 +20,8 @@ matrix:
- PYTEST_ADDOPTS="--cov ./ --cov-append --cov-config setup.cfg"
- python: '3.7'
env: TOXENV=py37
dist: xenial
sudo: true
- python: 'nightly'
env: TOXENV=py38
dist: xenial
sudo: true
- python: '3.6'
env: TOXENV=docs
- python: '3.6'