forked from SmartTeleMax/iktomi-cms
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
27 lines (19 loc) · 693 Bytes
/
Makefile
File metadata and controls
27 lines (19 loc) · 693 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
venv-%:
test -d venv-${*} || virtualenv -p ${*} venv-${*}
venv-${*}/bin/pip install -Ur requirements.txt
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/py.test $(name) -q -r fEsxXw --strict
coverage-%: devbuild-%
venv-${*}/bin/py.test tests --cov-report=term-missing --cov=iktomi/cms | sed -e "s/^venv-${*}\\/lib\\/${*}\\/site-packages\\///"
test2: test-python2.7
test3: test-python3.5
test: test2 test3
coverage: coverage-python2.7
#docs-%: devbuild
# cd doc && make SPHINXBUILD=../venv/bin/sphinx-build $*