Merge pull request #222 from seemethere/add_py36_testing
Adds python36 to tox.ini and .travis.yml
This commit is contained in:
commit
50243037eb
|
@ -1,6 +1,7 @@
|
||||||
language: python
|
language: python
|
||||||
python:
|
python:
|
||||||
- '3.5'
|
- '3.5'
|
||||||
|
- '3.6'
|
||||||
install:
|
install:
|
||||||
- pip install -r requirements.txt
|
- pip install -r requirements.txt
|
||||||
- pip install -r requirements-dev.txt
|
- pip install -r requirements-dev.txt
|
||||||
|
|
18
tox.ini
18
tox.ini
|
@ -1,27 +1,30 @@
|
||||||
[tox]
|
[tox]
|
||||||
|
|
||||||
envlist = py35, report
|
envlist = py35, py36
|
||||||
|
|
||||||
[testenv]
|
[testenv]
|
||||||
|
|
||||||
deps =
|
deps =
|
||||||
aiohttp
|
aiohttp
|
||||||
pytest
|
pytest
|
||||||
# pytest-cov
|
|
||||||
coverage
|
coverage
|
||||||
|
|
||||||
commands =
|
commands =
|
||||||
coverage run -m pytest tests {posargs}
|
coverage run -m pytest -v tests {posargs}
|
||||||
mv .coverage .coverage.{envname}
|
mv .coverage .coverage.{envname}
|
||||||
|
|
||||||
basepython:
|
|
||||||
py35: python3.5
|
|
||||||
|
|
||||||
whitelist_externals =
|
whitelist_externals =
|
||||||
coverage
|
coverage
|
||||||
mv
|
mv
|
||||||
echo
|
echo
|
||||||
|
|
||||||
|
[testenv:flake8]
|
||||||
|
deps =
|
||||||
|
flake8
|
||||||
|
|
||||||
|
commands =
|
||||||
|
flake8 sanic
|
||||||
|
|
||||||
[testenv:report]
|
[testenv:report]
|
||||||
|
|
||||||
commands =
|
commands =
|
||||||
|
@ -29,6 +32,3 @@ commands =
|
||||||
coverage report
|
coverage report
|
||||||
coverage html
|
coverage html
|
||||||
echo "Open file://{toxinidir}/coverage/index.html"
|
echo "Open file://{toxinidir}/coverage/index.html"
|
||||||
|
|
||||||
basepython =
|
|
||||||
python3.5
|
|
Loading…
Reference in New Issue
Block a user