mirror of
https://github.com/linux-system-roles/network.git
synced 2026-01-23 18:35:13 +00:00
Merge pull request #106 from tyll/travis_new
travis: Test against more python versions
This commit is contained in:
commit
cb612b07c5
2 changed files with 29 additions and 9 deletions
19
.travis.yml
19
.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
|
||||
|
|
|
|||
19
tox.ini
19
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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue