-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathMakefile
More file actions
29 lines (21 loc) · 802 Bytes
/
Makefile
File metadata and controls
29 lines (21 loc) · 802 Bytes
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
venv-%:
test -d venv-${*} || virtualenv -p ${*} venv-${*}
venv-${*}/bin/pip install -e .[tests,web,fcgi,sqla,memcached,cleanhtml,renderhtml,images]
touch venv-${*}/bin/activate
devbuild-%: venv-%
#venv-${*}/bin/python setup.py install
#venv-${*}/bin/pip uninstall iktomi
venv-${*}/bin/pip install --upgrade .
test-%: name ?= tests
test-%: devbuild-%
venv-${*}/bin/python -m pytest $(name) -q -r fEsxXw --strict
coverage-%: devbuild-%
venv-${*}/bin/python -m pytest tests --cov=venv-${*}/lib/${*}/site-packages/iktomi | sed -e "s/^venv-${*}\\/lib\\/${*}\\/site-packages\\///"
test2: test-python2.7
test3: test-python3.5
test: test2 test3
coverage: coverage-python2.7
clean:
rm -rf venv-python2.7 venv-python3.5
#docs-%: devbuild
# cd doc && make SPHINXBUILD=../venv/bin/sphinx-build $*