forked from stephrdev/django-ultimatethumb
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
37 lines (30 loc) · 849 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
25
26
27
28
29
30
31
32
33
34
35
36
37
.PHONY: tests coverage coverage-html devinstall docs clean
APP=.
COV=ultimatethumb
OPTS=
help:
@echo "tests - run all tests"
@echo "coverage - run all tests with coverage enabled"
@echo "coverage-html - run all tests with coverage html export enabled"
@echo "devinstall - install all packages required for development"
@echo "docs - generate Sphinx HTML documentation, including API docs"
@echo "clean - Clean build related files"
tests:
py.test ${OPTS} ${APP}
coverage:
py.test --cov=${COV} --cov-report=term-missing ${OPTS} ${APP}
coverage-html:
py.test --cov=${COV} --cov-report=html ${OPTS} ${APP}
devinstall:
pip install -e .
pip install -e .[docs]
pip install -e .[tests]
docs: clean
$(MAKE) -C docs clean
$(MAKE) -C docs html
clean:
rm -fr build/
rm -fr dist/
rm -fr *.egg-info
rm -fr htmlcov/
$(MAKE) -C docs clean