1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39
|
[tox]
envlist =
py{27,34,35,36}
coverage-report
skip_missing_interpreters = True
[testenv]
deps =
pytest > 3.0.0
coverage
botocore
requests
flask >= 0.10
# the sdk doesn't support earlier version of django
django >= 1.10, <2.0
# Python3.5+ only deps
py{35,36}: aiohttp >= 2.3.0
py{35,36}: pytest-aiohttp
py{35,36}: aiobotocore
commands =
py{27,34}: coverage run --source aws_xray_sdk -m py.test tests --ignore tests/ext/aiohttp --ignore tests/ext/aiobotocore --ignore tests/test_async_local_storage.py --ignore tests/test_async_recorder.py
py{35,36}: coverage run --source aws_xray_sdk -m py.test tests
setenv =
DJANGO_SETTINGS_MODULE = tests.ext.django.app.settings
[testenv:coverage-report]
deps = coverage
skip_install = true
commands =
# might need to add coverage combine at some point
coverage report
coverage html
[flake8]
max-line-length=120
exclude=tests
|