forked from jazzband/django-two-factor-auth
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
47 lines (38 loc) · 1.17 KB
/
Makefile
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
.PHONY: docs flake8 example test coverage migrations
docs:
cd docs; make html
open docs/_build/html/index.html
flake8:
tox -e flake8,isort
example:
DJANGO_SETTINGS_MODULE=example.settings PYTHONPATH=. \
django-admin migrate
DJANGO_SETTINGS_MODULE=example.settings PYTHONPATH=. \
django-admin runserver
example-webauthn:
DJANGO_SETTINGS_MODULE=example.settings_webauthn PYTHONPATH=. \
django-admin migrate
DJANGO_SETTINGS_MODULE=example.settings_webauthn PYTHONPATH=. \
django-admin runserver
test:
DJANGO_SETTINGS_MODULE=tests.settings PYTHONPATH=. \
django-admin test ${TARGET}
migrations:
DJANGO_SETTINGS_MODULE=tests.settings PYTHONPATH=. \
django-admin makemigrations two_factor
coverage:
coverage erase
DJANGO_SETTINGS_MODULE=tests.settings PYTHONPATH=. \
coverage run --parallel --source=two_factor \
`which django-admin` test ${TARGET}
coverage combine
coverage html
coverage report --precision=2
tx-pull:
tx pull -a
cd two_factor; django-admin compilemessages
cd example; django-admin compilemessages
tx-push:
cd two_factor; django-admin makemessages -l en -e html,txt,py,xml
cd example; django-admin makemessages -l en -e html,txt,py,xml
tx push -s