Merge pull request #106 from tyll/travis_new

travis: Test against more python versions
This commit is contained in:
Till Maas 2019-04-25 14:14:11 +02:00 committed by GitHub
commit cb612b07c5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 29 additions and 9 deletions

View file

@ -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

19
tox.ini
View file

@ -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