2014-02-07 15:20:27 +00:00
|
|
|
.PHONY: clean-pyc
|
|
|
|
|
|
|
|
help:
|
|
|
|
@echo "clean-pyc - remove Python file artifacts"
|
|
|
|
@echo "lint - check style with flake8"
|
|
|
|
@echo "test - run tests quickly with the default Python"
|
|
|
|
@echo "coverage - check code coverage quickly with the default Python"
|
|
|
|
|
|
|
|
clean-pyc:
|
|
|
|
find . -name '*.pyc' -exec rm -f {} +
|
|
|
|
find . -name '*.pyo' -exec rm -f {} +
|
|
|
|
find . -name '*~' -exec rm -f {} +
|
|
|
|
|
|
|
|
lint:
|
|
|
|
flake8 wagtail
|
|
|
|
|
|
|
|
test:
|
2014-02-13 12:44:49 +00:00
|
|
|
python runtests.py
|
2014-02-07 15:20:27 +00:00
|
|
|
|
|
|
|
test-all:
|
|
|
|
tox
|
|
|
|
|
|
|
|
coverage:
|
|
|
|
coverage run --source wagtail setup.py
|
|
|
|
coverage report -m
|
|
|
|
coverage html
|
|
|
|
open htmlcov/index.html
|