-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
35 lines (33 loc) · 839 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
[tox]
envlist =
py35-django{111}
py36-django{111,2}
docs
[testenv]
setenv =
PYTHONWARNINGS = all
passenv = CI TRAVIS TRAVIS_*
usedevelop = true
deps =
django111: Django>=1.11,<2.0
django2: Django>=2.0
coverage
pytest
pytest-cov
pytest-django
pytest-html
pytest_matrix
pytest-runner
pytest-env
pytest-xdist
codecov
commands =
py.test -n 2 --cov=./ --cov-report html --cov-report xml -q -l --html=report.html --self-contained-html tests {posargs}
coverage xml --include 'rest_delegated_permissions/*,tests/**' --omit 'tests/app/wsgi.py,tests/app/manage.py'
codecov --token=bf32c251-9397-43cc-a194-1891787d03bc
rm -rf stats
mkdir -p stats
cp report.html stats/test_report.html
cp -r htmlcov stats/
[coverage:run]
include = tests*