Revision a2d3e48e
Generation d'API, tests unitaires
git-svn-id: https://vigilo-dev.si.c-s.fr/svn@540 b22e2e97-25c9-44ff-b637-2e5ceca36478
Makefile | ||
---|---|---|
1 | 1 |
NAME = vigiboard |
2 | 2 |
BUILDENV = ../glue |
3 |
PYTHON = $(BUILDENV)/bin/python |
|
3 | 4 |
|
4 | 5 |
all: |
5 | 6 |
@echo "Template Makefile, to be filled with build and install targets" |
6 | 7 |
|
7 |
$(BUILDENV)/bin/python $(BUILDENV)/bin/paster:
|
|
8 |
$(PYTHON):
|
|
8 | 9 |
make -C $(BUILDENV) bin/python |
9 | 10 |
|
10 | 11 |
clean: |
11 | 12 |
find $(CURDIR) \( -name "*.pyc" -o -name "*~" \) -delete |
13 |
rm -rf data # temporary: sessions |
|
12 | 14 |
|
13 | 15 |
buildclean: clean |
14 | 16 |
rm -rf eggs develop-eggs parts .installed.cfg bin |
15 | 17 |
|
16 | 18 |
apidoc: doc/apidoc/index.html |
17 |
doc/apidoc/index.html: $(NAME) |
|
19 |
doc/apidoc/index.html: $(PYTHON) $(NAME)
|
|
18 | 20 |
rm -rf $(CURDIR)/doc/apidoc/* |
19 |
PYTHONPATH=src epydoc -o $(dir $@) -v \
|
|
21 |
PYTHONPATH=$(BUILDENV):src $(PYTHON) "$$(which epydoc)" -o $(dir $@) -v \
|
|
20 | 22 |
--name Vigilo --url http://www.projet-vigilo.org \ |
21 |
--docformat=epytext $^
|
|
23 |
--docformat=epytext $(NAME)
|
|
22 | 24 |
|
23 |
lint: |
|
24 |
$(BUILDENV)/bin/python ./pylint_vigiboard.py $(NAME)
|
|
25 |
lint: $(PYTHON)
|
|
26 |
$(PYTHON) ./pylint_vigiboard.py $(NAME)
|
|
25 | 27 |
|
26 |
tests: |
|
27 |
PYTHONPATH=$(BUILDENV) VIGILO_SETTINGS_MODULE=settings_tests $(BUILDENV)/bin/python "$$(which nosetests)" --with-coverage --cover-inclusive --cover-erase --cover-package $(NAME) $(NAME)/tests
|
|
28 |
tests: $(PYTHON)
|
|
29 |
PYTHONPATH=$(BUILDENV) $(BUILDENV)/bin/runtests-$(NAME)
|
|
28 | 30 |
|
29 | 31 |
|
30 | 32 |
.PHONY: all clean buildclean apidoc lint tests |
Also available in: Unified diff