Debian Codegraph @

Makefile

raw
1 # Some simple testing tasks (sorry, UNIX only).
2
3 flake:
4 pep8 aiohttp_mako tests
5 pyflakes aiohttp_mako tests/test_simple_renderer.py
6
7
8 test: flake
9 py.test -s -v ./tests/
10
11 vtest:
12 py.test -s -v ./tests/
13
14 cov cover coverage: flake
15 py.test -s -v --cov-report term --cov-report html --cov aiohttp_mako ./tests
16 @echo "open file://`pwd`/htmlcov/index.html"
17
18 clean:
19 rm -rf `find . -name __pycache__`
20 rm -f `find . -type f -name '*.py[co]' `
21 rm -f `find . -type f -name '*~' `
22 rm -f `find . -type f -name '.*~' `
23 rm -f `find . -type f -name '@*' `
24 rm -f `find . -type f -name '#*#' `
25 rm -f `find . -type f -name '*.orig' `
26 rm -f `find . -type f -name '*.rej' `
27 rm -f .coverage
28 rm -rf coverage
29 rm -rf build
30 rm -rf cover
31
32 doc:
33 make -C docs html
34 @echo "open file://`pwd`/docs/_build/html/index.html"
35
36 .PHONY: all build venv flake test vtest testloop cov clean doc