From 1ec39050ffc03d75930a568ff6124d9c5aedc34d Mon Sep 17 00:00:00 2001 From: Till Maas Date: Tue, 16 Apr 2019 22:01:03 +0200 Subject: [PATCH] travis: Test against more python versions --- .travis.yml | 19 ++++++++++++------- tox.ini | 19 +++++++++++++++++-- 2 files changed, 29 insertions(+), 9 deletions(-) diff --git a/.travis.yml b/.travis.yml index ec56b2d..571e66d 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,11 +1,16 @@ -sudo: false -dist: trusty +--- +dist: xenial language: python -python: - - 2.6 - - 2.7 - - 3.6 - - 3.7-dev +matrix: + include: + - python: 2.6 + dist: trusty + - python: 2.7 + - python: 3.6 + - python: 3.7 + - python: 3.7-dev + - python: 3.8-dev + - nightly install: - pip install tox tox-travis diff --git a/tox.ini b/tox.ini index 1c8a0a6..11bd949 100644 --- a/tox.ini +++ b/tox.ini @@ -6,8 +6,8 @@ skip_missing_interpreters = True [testenv] basepython = python2.7 deps = - py{26,27,36,37}: pytest-cov - py{27,36,37}: pytest>=3.5.1 + py{26,27,36,37,38}: pytest-cov + py{27,36,37,38}: pytest>=3.5.1 py{26,27}: mock py26: pytest @@ -82,6 +82,20 @@ commands = {posargs} \ {[base]pytesttarget} +[testenv:py38] +passenv = {[base]passenv} +setenv = + {[base]setenv} +changedir = {[base]changedir} +basepython = python3.8 +commands = + pytest \ + --durations=5 \ + --cov={[base]covtarget} \ + --cov-report=html:htmlcov-py38 --cov-report=term \ + {posargs} \ + {[base]pytesttarget} + [testenv:pylint] basepython = python2.7 setenv = @@ -141,3 +155,4 @@ python = 2.7: py27,coveralls,flake8,pylint 3.6: py36,black,ensure_non_running_provider 3.7: py37 + 3.8: py38