summaryrefslogtreecommitdiff
path: root/Makefile
blob: 274ee32fc85d7c5b6f2945eb743e5d5ca4e2f43b (plain)
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
PACKAGE=factory
TESTS_DIR=tests
DOC_DIR=docs


all: default


default:


clean:
	find . -type f -name '*.pyc' -delete


test:
	python -W default setup.py test

pylint:
	pylint --rcfile=.pylintrc --report=no $(PACKAGE)/

coverage:
	coverage erase
	coverage run "--include=$(PACKAGE)/*.py,$(TESTS_DIR)/*.py" --branch setup.py test
	coverage report "--include=$(PACKAGE)/*.py,$(TESTS_DIR)/*.py"
	coverage html "--include=$(PACKAGE)/*.py,$(TESTS_DIR)/*.py"

doc:
	$(MAKE) -C $(DOC_DIR) html


.PHONY: all default clean coverage doc pylint test