-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
58 lines (48 loc) · 1.24 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
[tox]
envlist =
types
unit
isolated_build = true
skipsdist = true
[testenv]
envdir = {toxworkdir}/awards
passenv =
PYTHONBREAKPOINT
# $TERM is required by curses (bpython).
TERM
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
# A different settings module is used for unit tests so that we can use a
# different database from the one used when developing the application.
unit: DJANGO_SETTINGS_MODULE = awards.settings.ci
[testenv:createsuperuser]
commands =
python manage.py createsuperuser
[testenv:dbshell]
commands =
python manage.py dbshell
[testenv:makemigrations]
commands =
python manage.py makemigrations
[testenv:migrate]
commands =
python manage.py migrate {posargs}
[testenv:runserver]
commands =
python manage.py runserver
[testenv:shell]
commands =
python manage.py shell -i {posargs:python}
[testenv:startapp]
commands =
python manage.py startapp {posargs}
[testenv:types]
commands =
mypy --exclude migrations {posargs:.}
[testenv:unit]
commands =
pytest {posargs}