forked from lukearno/redbike
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
26 lines (26 loc) · 1.07 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
pyversion=2.7
export
clean:
rm coverage.xml -f
rm .coverage -f
rm full-test-coverage-html -rf
rm .virts -rf
develop:
mkdir -p .virts/
virtualenv .virts/dev
. .virts/dev/bin/activate && pip install -i 'http://pypi.python.org/simple' -r dev-requirements.txt > /dev/null
. .virts/dev/bin/activate && pip install -e '.' > /dev/null
test-python:
virtualenv .virts/$(pyversion) --python=python$(pyversion)
. .virts/$(pyversion)/bin/activate && pip install -i 'http://pypi.python.org/simple' -r dev-requirements.txt > /dev/null
. .virts/$(pyversion)/bin/activate && pip install -e '.' > /dev/null
. .virts/$(pyversion)/bin/activate && nosetests -xs tests/
stylecheck:
. .virts/dev/bin/activate && flake8 redbike tests --max-complexity=12 && echo "\nStyle checks passed.\n"
test:
PYTHONWARNINGS=d . .virts/dev/bin/activate && nosetests -xs \
--with-coverage --cover-package redbike \
--cover-html --cover-html-dir coverage-html tests/ && scripts/show-behaviors.sh
viewcoverage:
. .virts/dev/bin/activate && static localhost 6897 coverage-html
fulltest: clean develop test stylecheck