-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathMakefile
24 lines (24 loc) · 999 Bytes
/
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
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