forked from lorien/grab
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
45 lines (33 loc) · 1.11 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
.PHONY: build venv deps develop flake flake_verbose test coverage_nobackend coverage coverage_missing clean upload doc doc_ru
build: venv deps develop
venv:
virtualenv --no-site-packages --python=python3 .env
deps:
.env/bin/pip install -r requirements_dev.txt
.env/bin/pip install -r requirements_dev_backend.txt
develop:
.env/bin/python setup.py develop
test:
tox -e py34
coverage_nobackend:
coverage erase
coverage run --source=grab ./runtest.py --test-all
coverage report -m
coverage:
coverage erase
coverage run --source=grab ./runtest.py --test-all --backend-mongo --backend-redis
coverage report -m
coverage_missing:
coverage erase
coverage run --source=grab ./runtest.py --test-all --backend-mongo --backend-redis
coverage report -m | grep -v '100%' | grep -v Missing | grep -v -- '----' | sort -k 3 -nr
clean:
find -name '*.pyc' -delete
find -name '*.swp' -delete
find -name '__pycache__' -delete
upload:
git push --tags; python setup.py clean sdist upload
viewdoc:
x-www-browser docs/en/build/html/index.html
upload_docs:
tox -e doc && rsync -azhP docs/build/html/ web@sam:/web/grablab/docs/