-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathMakefile
44 lines (30 loc) · 922 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
all: coverage lint run_server
depends:
venv/bin/pip install -q -r requirements.txt --upgrade
develop: setup assets
venv/bin/pip install -q -r requirements.txt
venv_boot:
virtualenv venv --distribute
run_server:
venv/bin/python app/__init__.py
assets:
cd app
bower install
setup: venv/bin/python
venv/bin/pip install -q -r requirements.test.txt
venv/bin/python:
virtualenv venv
venv/bin/pip install 'distribute>=0.6.45'
coverage: clean
@venv/bin/nosetests tests --with-coverage --cover-package=app
lint:
@find $(sources) -type f \( -iname '*.py' ! -iwholename './venv/*' ! -iwholename './charms/*' ! -iwholename './cabs-client.py' ! -iwholename './offline_bundle/*' \) -print0 | xargs -r0 venv/bin/flake8
clean:
find . -name \*.pyc -delete
find . -name '*.bak' -delete
rm -f .coverage
clean_all: clean
rm -rf venv
venv/bin/python:
virtualenv venv
venv/bin/pip install 'distribute>=0.6.45'