forked from mklymyshyn/arango-python
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Makefile
42 lines (29 loc) · 955 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
40
41
.PHONY: coverage doc tests test fast one
.DEFAULT: raw
CLIENTS=urllib2client.Urllib2Client pycurlclient.PyCurlClient
-include Makefile.local
coverage:
@echo "Collect coverage ..."
-rm .coverage
coverage run --rcfile=coverage.rc -a `type -p nosetests` -v
$(foreach client,$(CLIENTS),USE_CLIENT=arango.clients.$(client) \
INTEGRATION=1 NOSMOKE=1 coverage run \
--rcfile=coverage.rc -a `type -p nosetests` -v; )
@echo "Building reports"
coverage report -m --rcfile=coverage.rc
coverage html --directory=./coverage --title="Arango Coverage Report" \
--rcfile=coverage.rc
tests: smoke doctest
$(foreach client,$(CLIENTS),USE_CLIENT=arango.clients.$(client) INTEGRATION=1 NOSMOKE=1 nosetests -v; )
doctest:
ifdef PYTHON_V2
$(MAKE) -C docs doctest
endif
test: tests
smoke:
nosetests -v
one:
INTEGRATION=1 nosetests -v arango.tests.$(DST)
doc:
cd docs && make clean && make html && \
rsync -avz build/html/* -e ssh $(DOCS_HOST)