forked from aws/aws-xray-sdk-python
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
67 lines (57 loc) · 1.57 KB
/
tox.ini
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
[tox]
envlist =
py{27,34,35,36}
py36-aiohttp2
py35-aiohttp2
coverage-report
skip_missing_interpreters = True
[testenv]
deps =
pytest > 3.0.0
coverage
botocore
requests
flask >= 0.10
sqlalchemy
Flask-SQLAlchemy
future
# the sdk doesn't support earlier version of django
django >= 1.10, <2.0
pynamodb
# Python3.5+ only deps
py{35,36}: aiohttp >= 3.0.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
AWS_SECRET_ACCESS_KEY = fake_key
AWS_ACCESS_KEY_ID=fake_id
[testenv:py35-aiohttp2]
deps =
pytest > 3.0.0
aiohttp >= 2.3.0,<3.0.0
pytest-aiohttp
coverage
commands =
py{35}: coverage run --source aws_xray_sdk -m py.test tests/ext/aiohttp --ignore tests/ext/aiohttp/test_client.py
[testenv:py36-aiohttp2]
deps =
pytest > 3.0.0
aiohttp >= 2.3.0,<3.0.0
pytest-aiohttp
coverage
commands =
py{36}: coverage run --source aws_xray_sdk -m py.test tests/ext/aiohttp --ignore tests/ext/aiohttp/test_client.py
[testenv:coverage-report]
deps = coverage
skip_install = true
commands =
# might need to add coverage combine at some point
py{36}: coverage report
py{36}: coverage html
[flake8]
max-line-length=120
exclude=tests