forked from pymor/pymor
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
39 lines (29 loc) · 877 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
38
39
.PHONY: README.txt README.html pylint test
all:
# PyPI wants ReStructured text
README.txt: README.markdown
pandoc -f markdown -t plain $< > $@
# I want HTML (to preview the formatting :))
README.html: README.markdown
pandoc -f markdown -t html $< > $@
README: README.txt README.html
pep8:
pep8 ./src
flake8:
flake8 ./src
test:
python setup.py test
full-test:
@echo
@echo "Ensuring that all required pytest plugins are installed ..."
@echo "--------------------------------------------------------------------------------"
@echo
pip install pytest-flakes
pip install pytest-pep8
pip install pytest-cov
@echo
@echo "--------------------------------------------------------------------------------"
@echo
py.test --flakes --pep8 --cov=pymor --cov-report=html --cov-report=xml src/pymortests
doc:
PYTHONPATH=${PWD}/src/:${PYTHONPATH} make -C docs html