Skip to content

Commit e1799ce

Browse files
committed
Test multiple Django versions
1 parent 37e57bb commit e1799ce

File tree

1 file changed

+14
-4
lines changed

1 file changed

+14
-4
lines changed

tox.ini

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
envlist =
33
py{27,34,35,36,37,38}
44
py{35,36,37,38}-aiohttp2
5+
py{27,34,35,36,37}-django{111}
6+
py{35,36,37,38}-django{22}
7+
py{36,37,38}-django{30}
58
coverage-report
69

710
skip_missing_interpreters = True
@@ -17,8 +20,9 @@ deps =
1720
sqlalchemy
1821
Flask-SQLAlchemy
1922
future
20-
# the sdk doesn't support earlier version of django
21-
django >= 1.10, <2.0
23+
django11: Django==1.11.*
24+
django22: Django==2.2.*
25+
django30: Django==3.0.*
2226
django-fake-model
2327
pynamodb >= 3.3.1
2428
psycopg2
@@ -34,9 +38,15 @@ deps =
3438
py{35,36,37,38}: aiobotocore >= 0.10.0
3539

3640
commands =
37-
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
41+
py{27,34,35,36,37}-django{111}: coverage run --source aws_xray_sdk -m py.test tests/ext/django
3842
codecov
39-
py{35,36,37,38}: coverage run --source aws_xray_sdk -m py.test tests
43+
py{35,36,37,38}-django{22}: coverage run --source aws_xray_sdk -m py.test tests/ext/django
44+
codecov
45+
py{36,37,38}-django{30}: coverage run --source aws_xray_sdk -m py.test tests/ext/django
46+
codecov
47+
py{27,34}: coverage run --source aws_xray_sdk -m py.test tests --ignore tests/ext/aiohttp --ignore tests/ext/aiobotocore --ignore tests/ext/django --ignore tests/test_async_local_storage.py --ignore tests/test_async_recorder.py
48+
codecov
49+
py{35,36,37,38}: coverage run --source aws_xray_sdk -m py.test --ignore tests/ext/django tests
4050
codecov
4151

4252
setenv =

0 commit comments

Comments
 (0)