forked from omaciel/fauxfactory
-
Notifications
You must be signed in to change notification settings - Fork 0
/
makefile
31 lines (23 loc) · 751 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
unittest-args = -m unittest discover --start-directory tests --top-level-directory .
define doctest-cmd =
cd docs && $(MAKE) doctest
endef
help:
@echo "Please use \`make <target>' where <target> is one of:"
@echo " docs-clean Remove documentation."
@echo " docs-doctest Check code samples in the documentation."
@echo " docs-html Compile documentation to HTML."
@echo " test Run unit tests."
@echo " test-all Run unit tests and doctests, measure coverage."
docs-clean:
cd docs && $(MAKE) clean
docs-doctest:
$(doctest-cmd)
docs-html:
cd docs && $(MAKE) html
test:
python $(unittest-args)
test-all:
coverage run $(unittest-args)
$(doctest-cmd)
.PHONY: help docs-clean docs-doctest docs-html test test-all