Skip to content

Commit

Permalink
add py36 support
Browse files Browse the repository at this point in the history
  • Loading branch information
xandfury committed Jul 12, 2018
1 parent e19a2af commit 23d8a0c
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 8 deletions.
6 changes: 5 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
language: python
python:
- '3.5'
- '3.6'
virtualenv:
system_site_packages: false
sudo: false
Expand Down Expand Up @@ -28,7 +29,10 @@ install:
- export PYTHONIOENCODING=UTF8
- pip install coveralls
- pip install -r requirements.txt
- tox -e cov-init
script:
- tox
- if [[ $TRAVIS_PYTHON_VERSION == 3.5 ]]; then tox -e py35; fi
- if [[ $TRAVIS_PYTHON_VERSION == 3.6 ]]; then tox -e py36; fi
after_success:
- tox -e cov-report
- coveralls
35 changes: 28 additions & 7 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,20 +1,41 @@
[tox]
envlist = py35
envlist = py35, py36
skipsdist = True
usedevelop = True

[testenv]
basepython =
py35: python3.5
usedevelop = True
passenv = *
whitelist_externals = echo
description = run conpot tests in {envpython}
envdir = {toxinidir}/.tox/py35
setenv =
COVERAGE_FILE = .coverage.{envname}
PYTHONDONTWRITEBYTECODE = pls
deps =
coverage
pytest_timeout
pytest-xdist
pytest-cov
commands =
pip --default-timeout=1000 install -r requirements.txt
{envpython} -m pytest -rsx -v --timeout=30 --cov=telnetsrv {posargs}
{envpython} -m pytest -rsx -v --timeout=30 --cov={toxinidir}/telnetsrv --cov-report term-missing

[testenv:cov-init]
setenv = COVERAGE_FILE = .coverage
deps = coverage
commands = coverage erase

[testenv:py35]
basepython =
py35: python3.5
envdir = {toxinidir}/.tox/py35

[testenv:py36]
basepython =
py36: python3.6
envdir = {toxinidir}/.tox/py36

[testenv:cov-report]
setenv = COVERAGE_FILE = .coverage
deps = coverage
commands =
coverage combine
coverage report

0 comments on commit 23d8a0c

Please sign in to comment.