-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
40 lines (33 loc) · 1.03 KB
/
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
38
39
40
.PHONY: tests coverage coverage-html devinstall tox docs clean
APP=livewatch
COV=livewatch
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-build - Clean build related files"
tests:
py.test ${OPTS} ${APP}
coverage:
coverage run `which py.test` ${OPTS} ${APP}
coverage report -m --include=${COV}* --omit='*/tests*'
coverage-html:
coverage run `which py.test` ${OPTS} ${APP}
coverage html -d htmlcov --include=${COV}* --omit='*/tests*'
devinstall:
pip install -e .
pip install -e .[tests]
pip install -r resources/requirements-docs.txt
docs: clean-build
pip install -r resources/requirements-docs.txt
$(MAKE) -C docs clean
$(MAKE) -C docs html
clean-build:
@rm -fr build/
@rm -fr dist/
@rm -fr *.egg-info src/*.egg-info
@rm -fr htmlcov/
$(MAKE) -C docs clean