forked from lepture/authlib
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
45 lines (40 loc) · 941 Bytes
/
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
[tox]
envlist =
py{27,35,36,37}
{py27,py35,py36,py37}-flask
{py27,py35,py36,py37}-django
coverage
[testenv]
deps =
-rrequirements-test.txt
py27: unittest2
flask: Flask
flask: Flask-SQLAlchemy
py27-django: Django>=1.11,<2.0
{py35,py36,py37}-django: Django>=2.0,<2.1
{py27,py35,py36,py37}-django: pytest-django
setenv =
PYTHONDONTWRITEBYTECODE=1
TESTPATH=tests/core
flask: TESTPATH=tests/flask
{py27,py35,py36,py37}-django: TESTPATH=tests/django
commands =
coverage run --source=authlib -p -m pytest {env:TESTPATH}
[testenv:coverage]
skip_install = true
commands =
coverage combine
coverage report
coverage html
[testenv:codecov]
passenv = CI TRAVIS TRAVIS_* CODECLIMATE_REPO_TOKEN
deps =
codecov
codeclimate-test-reporter
coverage<4.4
skip_install = true
commands =
coverage combine
coverage report
codecov
codeclimate-test-reporter