Add py3*-no-ext test env
This commit is contained in:
parent
fa1b7de52a
commit
66fcb0cc8f
|
@ -2,7 +2,11 @@ import random
|
|||
|
||||
from sanic import Sanic
|
||||
from sanic.response import json
|
||||
|
||||
try:
|
||||
from ujson import loads
|
||||
except ImportError:
|
||||
from json import loads
|
||||
|
||||
|
||||
def test_storage():
|
||||
|
|
20
tox.ini
20
tox.ini
|
@ -1,17 +1,23 @@
|
|||
[tox]
|
||||
envlist = py35, py36, flake8, check
|
||||
|
||||
envlist = py35, py36, {py35,py36}-no-ext, flake8, check
|
||||
|
||||
[travis]
|
||||
python =
|
||||
3.5: py35, flake8, check
|
||||
3.6: py36, flake8, check
|
||||
|
||||
3.5: py35, py35-no-ext, flake8, check
|
||||
3.6: py36, py36-no-ext, flake8, check
|
||||
|
||||
[testenv]
|
||||
usedevelop = True
|
||||
setenv =
|
||||
{py35,py36}-no-ext: SANIC_NO_UJSON=1
|
||||
{py35,py36}-no-ext: SANIC_NO_UVLOOP=1
|
||||
deps =
|
||||
-rrequirements-dev.txt
|
||||
|
||||
coverage
|
||||
pytest
|
||||
pytest-sugar
|
||||
aiohttp==1.3.5
|
||||
chardet<=2.3.0
|
||||
beautifulsoup4
|
||||
commands =
|
||||
pytest tests {posargs}
|
||||
coverage erase
|
||||
|
|
Loading…
Reference in New Issue
Block a user