-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
44 lines (32 loc) · 1.09 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
41
42
43
44
# Makefile for reliure
.PHONY: help tests clean doc testall testdoc
help:
@echo "Please use \`make <target>' where <target> is one of"
@echo " help prints this help"
@echo " doc build doc after tests run"
@echo " doc-notest build doc without testing it"
@echo " test runs unit tests"
@echo " testlib runs doctests on lib only"
@echo " testall runs all tests doc+rst"
@echo " testcov runs coverage unit tests"
clean-doc:
rm -rf docs/_build/ docs/_templates/
doc: testdoc
make -C ./docs html
doc-notest:
make -C ./docs html
test:
py.test -v ./tests --cov reliure --cov-report html
testlib:
py.test -v ./reliure --doctest-module
testdoc:
py.test -v ./docs --doctest-glob='*.rst'
testall:
py.test -v ./tests ./reliure ./docs --doctest-module --doctest-glob='*.rst' --cov reliure --cov-report html
testcov:
py.test -v ./tests ./reliure ./docs --doctest-module --doctest-glob='*.rst' --cov reliure --cov-report term-missing
clean:
# removing .pyc filesin
find ./ -iname *.pyc | xargs rm
find ./ -iname *.py~ | xargs rm
all: help