Change travis job to use tox

This commit is contained in:
Eli Uriegas 2016-12-25 18:55:25 -08:00
parent 5402e6d3a6
commit 56d6c2a929
2 changed files with 5 additions and 9 deletions

View File

@ -2,14 +2,8 @@ language: python
python: python:
- '3.5' - '3.5'
- '3.6' - '3.6'
install: install: pip install tox-travis
- pip install -r requirements.txt script: tox
- pip install -r requirements-dev.txt
- python setup.py install
- pip install flake8
- pip install pytest
before_script: flake8 sanic
script: py.test -v tests
deploy: deploy:
provider: pypi provider: pypi
user: channelcat user: channelcat

View File

@ -1,6 +1,6 @@
[tox] [tox]
envlist = py35, py36 envlist = py35, py36, flake8, report
[testenv] [testenv]
@ -26,6 +26,8 @@ commands =
flake8 sanic flake8 sanic
[testenv:report] [testenv:report]
deps=
coverage
commands = commands =
coverage combine coverage combine