Travis: use xenial dist globally; sudo is not used
language: python
-sudo: false
+dist: xenial
python:
- "2.7"
- "3.4"
- "3.5"
- "3.6"
- # 3.7 and 3.8 are defined separately in the jobs below.
- # See: https://github.com/travis-ci/travis-ci/issues/9815
+ - "3.7"
+ - "3.8-dev"
- "pypy"
- "pypy3"
@@ -36,7 +36,7 @@ jobs:
include:
- stage: lint
name: "Linting"
- python: "3.6"
+ python: "3.7"
before_script:
- travis_retry pip install -e ".[dev-lint]"
script:
@@ -44,7 +44,7 @@ jobs:
- stage: rst
name: "RST (README.rst + docs) syntax check"
- python: "3.6"
+ python: "3.7"
before_script:
- travis_retry pip install -e ".[dev-docs]"
script:
@@ -52,12 +52,3 @@ jobs:
# The `test` stage using the `python` matrix above is included implicitly.
- - stage: test
- python: "3.7"
- dist: xenial
- sudo: required
-
- - stage: test
- python: "3.8-dev"
- dist: xenial
- sudo: required
