-
Notifications
You must be signed in to change notification settings - Fork 6
/
Makefile
52 lines (38 loc) · 1.14 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
48
49
50
51
52
COMPILE_TRANSLATIONS=python setup.py compile_catalog -l fr
dev_requirements:
pip install -r dev_requirements.txt
requirements:
pip install -r requirements.txt
localization:
${COMPILE_TRANSLATIONS}
develop: requirements
pip install -r dev_requirements.txt
python setup.py develop
initialize_ode_db development.ini
alembic -c development.ini upgrade head
${COMPILE_TRANSLATIONS}
production:
python setup.py develop
../env/bin/initialize_ode_db production.ini
alembic -c production.ini upgrade head
python setup.py compile_catalog -l fr
test: localization requirements dev_requirements flake8
nosetests -v
coverage: dev_requirements
nosetests --cover-package=ode --cover-inclusive --cover-erase --with-coverage --cover-branches --cover-tests ode
start: $(PROC) .env
$(PROC) start -f $(PROCFILE)
backup:
#TODO
serve:
pserve development.ini --reload
flake8: $(FLAKE8)
flake8 ode
.PHONY: docs
docs:
cd docs && make html
harvest:
harvest development.ini
database:
sudo su postgres -c 'createuser --pwprompt --no-superuser --no-createrole --no-createdb ode'
sudo su postgres -c 'createdb --owner ode --encoding=utf8 --template=template0 ode'