-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtox.ini
43 lines (37 loc) · 1.22 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
[tox]
minversion = 3.2
envlist =
codestyle
sort
docs
{py36}-report
skipsdist = true
skip_missing_interpreters = true
[testenv]
deps =
-r{toxinidir}/requirements/test.txt
setenv =
DJANGO_SETTINGS_MODULE=mymoney.settings.test
commands =
{py34,py35,py36}-std: python manage.py test --parallel --noinput {posargs:mymoney}
{py34,py35,py36}-fast: python manage.py test --parallel --noinput --failfast {posargs:mymoney}
{py34,py35,py36}-warn: python -Wd manage.py test --noinput {posargs:mymoney}
{py34,py35,py36}-reverse: python manage.py test --reverse --parallel --noinput mymoney
{py34,py35,py36}-report: coverage erase
{py34,py35,py36}-report: coverage run manage.py test --noinput mymoney
{py34,py35,py36}-report: coverage report
[testenv:codestyle]
deps =
-r{toxinidir}/requirements/test.txt
commands = pylama {posargs:mymoney}
[testenv:sort]
deps =
-r{toxinidir}/requirements/test.txt
commands = isort -c -rc -df {posargs:mymoney}
[testenv:docs]
deps =
-r{toxinidir}/requirements/docs.txt
changedir = docs
commands =
sphinx-build -W -b html -d {envtmpdir}/doctrees . {envtmpdir}/html
sphinx-build -W -b html -d {envtmpdir}/doctrees -D language='fr' . {envtmpdir}/html