This repository has been archived by the owner on Oct 2, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
86 lines (75 loc) · 1.52 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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
[tox]
envlist =
unit
coverage
skipsdist = true
[testenv]
deps =
-r{toxinidir}/dev-requirements.txt
-r{toxinidir}/requirements.txt
setenv =
DATABASE_HOST = {env:DATABASE_HOST:localhost}
DATABASE_NAME = {env:DATABASE_NAME:postgres}
DATABASE_PASSWORD = {env:DATABASE_PASSWORD:postgres}
DATABASE_USER = {env:DATABASE_USER:postgres}
DJANGO_SETTINGS_MODULE = awards.settings.dev
unit: DJANGO_SETTINGS_MODULE = awards.settings.ci
changedir =
{toxinidir}/src
[testenv:createsuperuser]
commands =
python manage.py createsuperuser
[testenv:dbshell]
commands =
python manage.py dbshell
[testenv:coverage]
deps =
coverage
commands =
coverage report
[testenv:makemigrations]
commands =
python manage.py makemigrations
[testenv:migrate]
commands =
python manage.py migrate {posargs}
[testenv:runserver]
deps =
bpython
ipdb
pudb
pywatchman
{[testenv]deps}
passenv =
PYTHONBREAKPOINT
commands =
python manage.py runserver
[testenv:shell]
deps =
bpython
ipython
{[testenv]deps}
passenv =
# $TERM is required by curses (bpython).
TERM
commands =
python manage.py shell -i {posargs:python}
[testenv:startapp]
commands =
python manage.py startapp {posargs}
[testenv:types]
deps =
factory-boy==3.0.1
pyre-check==0.0.46
pytest
{[testenv]deps}
commands =
pyre {posargs}
[testenv:unit]
deps =
coverage
factory-boy
pytest-django
-r{toxinidir}/requirements.txt
commands =
coverage run --m pytest {posargs}