-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
42 lines (30 loc) · 943 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
SHELL := /bin/bash
VENV = ~/.python/venv/pronosfoot
APP_LIST ?= season
.PHONY: collectstatic run install test ci locale deploy
locale:
export DJANGO_SETTINGS_MODULE=pronosfoot.settings.dev; \
export PATH=$PATH:/usr/local/Cellar/gettext/0.19.8.1/bin; \
source $(VENV)/bin/activate; \
python manage.py makemessages -l fr --ignore "tools/*"
collectstatic:
source $(VENV)/bin/activate; \
python manage.py collectstatic --noinput
run:
source $(VENV)/bin/activate; \
python manage.py runserver 0.0.0.0:8000
install:
source $(VENV)/bin/activate; \
pip install -r requirements.txt
migrations-check:
source $(VENV)/bin/activate; \
python manage.py makemigrations --check --dry-run
#test: migrations-check
# @coverage run --source=. manage.py test -v2 $(APP_LIST)
#ci: test
# @coverage report
new-season:
source $(VENV)/bin/activate; \
python manage.py migrate; \
python manage.py prepare_season
deploy: install collectstatic