forked from varfish-org/varfish-server
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
42 lines (29 loc) · 978 Bytes
/
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
SHELL = /bin/bash
MANAGE = time python manage.py
.PHONY: black collectstatic serve serve_public flushdb migrate shell celery test test-noselenium
black:
black -l 100 --exclude '/(\.eggs|\.git|\.hg|\.mypy_cache|\.nox|\.tox|\.?v?env|_build|buck-out|build|dist|src)/' .
serve:
$(MANAGE) runserver
serve_public:
$(MANAGE) runserver 0.0.0.0:8000
flushdb:
$(MANAGE) flush
_migrate:
$(MANAGE) makemigrations
$(MANAGE) migrate
migrate: _migrate black
shell:
$(MANAGE) shell
docs:
$(MAKE) -C docs_manual html
celery:
celery worker -A config.celery_app -l info --concurrency=4 --beat
collectstatic:
python manage.py collectstatic
# Remember to execute 'python manage.py collectstatic' before executing tests the first time
test: collectstatic
VARFISH_KIOSK_MODE=0 coverage run manage.py test -v2 --settings=config.settings.test
coverage report
test-noselenium:
VARFISH_KIOSK_MODE=0 SKIP_SELENIUM=1 coverage run manage.py test -v2 --settings=config.settings.test