forked from hacklabr/timtec
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
70 lines (55 loc) · 1.96 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
all: setup_py setup_coveralls setup_js setup_django
ci: setup_ci settings_ci all
create-staging:
virtualenv ~/env
~/env/bin/pip install -r requirements.txt
mkdir -p ~/webfiles/static
mkdir -p ~/webfiles/media
update-staging:
cp timtec/settings_local_staging.py timtec/settings_local.py
~/env/bin/pip install -r requirements.txt
~/env/bin/python manage.py syncdb --noinput
~/env/bin/python manage.py collectstatic --noinput
~/env/bin/python manage.py compilemessages
touch timtec/wsgi.py
staging: create-staging update-staging
create-production:
virtualenv ~/env
~/env/bin/pip install -r requirements.txt
mkdir -p ~/webfiles/static
mkdir -p ~/webfiles/media
cp timtec/settings_local_production.py timtec/settings_local.py
~/env/bin/pip install -r requirements.txt
~/env/bin/python manage.py syncdb --noinput --no-initial-data
~/env/bin/python manage.py migrate --noinput --no-initial-data
~/env/bin/python manage.py loaddata production
~/env/bin/python manage.py collectstatic --noinput
~/env/bin/python manage.py compilemessages
touch timtec/wsgi.py
update-production:
cp timtec/settings_local_production.py timtec/settings_local.py
~/env/bin/pip install -r requirements.txt
~/env/bin/python manage.py migrate
~/env/bin/python manage.py collectstatic --noinput
~/env/bin/python manage.py compilemessages
touch timtec/wsgi.py
python_tests:
py.test --pep8 --flakes --cov . . $*
karma_tests:
karma start tests/confkarma.js $*
all_tests: python_tests karma_tests
setup_ci:
psql -c 'create database timtec_ci;' -U postgres
setup_py:
pip install -q -r requirements.txt --use-mirrors
pip install -q -r dev-requirements.txt --use-mirrors
python setup.py -q develop
setup_coveralls:
pip install -q coveralls --use-mirrors
setup_js:
sudo `which npm` -g install less yuglify karma --loglevel silent > /dev/null
setup_django:
python manage.py syncdb --noinput
python manage.py compilemessages
settings_ci:
cp timtec/settings_local_ci.py timtec/settings_local.py