Merge support for lazy loading packs.
[jelmer/dulwich-libgit2.git] / Makefile
index cb6f599839fa818d7280674235250766dcdc0eec..aea43348b082023ee005478821a795a2e4948d6a 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,8 +1,15 @@
 PYTHON = python
 SETUP = $(PYTHON) setup.py
-TESTRUNNER = $(shell which trial)
+PYDOCTOR ?= pydoctor
+TESTRUNNER = $(shell which nosetests)
+TESTFLAGS =
 
-all: build 
+all: build
+
+doc:: pydoctor
+
+pydoctor::
+       $(PYDOCTOR) --make-html -c dulwich.cfg
 
 build::
        $(SETUP) build
@@ -13,10 +20,20 @@ install::
 
 check:: build
        PYTHONPATH=. $(PYTHON) $(TESTRUNNER) dulwich
+       which git > /dev/null && PYTHONPATH=. $(PYTHON) $(TESTRUNNER) $(TESTFLAGS) -i compat
 
 check-noextensions:: clean
-       PYTHONPATH=. $(PYTHON) $(TESTRUNNER) dulwich
+       PYTHONPATH=. $(PYTHON) $(TESTRUNNER) $(TESTFLAGS) dulwich
+
+check-compat:: build
+       PYTHONPATH=. $(PYTHON) $(TESTRUNNER) $(TESTFLAGS) -i compat
 
 clean::
        $(SETUP) clean --all
        rm -f dulwich/*.so
+
+coverage:: build
+       PYTHONPATH=. $(PYTHON) $(TESTRUNNER) --cover-package=dulwich --with-coverage --cover-erase --cover-inclusive dulwich
+
+coverage-annotate: coverage
+       python-coverage -a -o /usr