Permalink
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
25 lines (24 sloc) 999 Bytes
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 tests/
stylecheck:
. .virts/dev/bin/activate && flake8 static tests --max-complexity=14
test:
. .virts/dev/bin/activate && nosetests -xs --with-coverage --cover-package static --cover-html --cover-html-dir coverage-html tests/
viewcoverage:
. .virts/dev/bin/activate && static localhost 6897 coverage-html
fulltest: clean develop test stylecheck