forked from Polyconseil/aioamqp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
53 lines (36 loc) · 1.24 KB
/
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
42
43
44
45
46
47
48
49
50
51
52
53
.PHONY: doc test update
PACKAGE = aioamqp
NOSETESTS ?= nosetests
TEST_OPTIONS ?= --verbosity=2
PYLINT_RC ?= .pylintrc
BUILD_DIR ?= build
INPUT_DIR ?= docs
# Sphinx options (are passed to build_docs, which passes them to sphinx-build)
# -W : turn warning into errors
# -a : write all files
# -b html : use html builder
# -i [pat] : ignore pattern
SPHINXOPTS ?= -a -W -b html
AUTOSPHINXOPTS := -i *~ -i *.sw* -i Makefile*
SPHINXBUILDDIR ?= $(BUILD_DIR)/sphinx/html
ALLSPHINXOPTS ?= -d $(BUILD_DIR)/sphinx/doctrees $(SPHINXOPTS) docs
doc:
sphinx-build -a $(INPUT_DIR) build
livehtml: docs
sphinx-autobuild $(AUTOSPHINXOPTS) $(ALLSPHINXOPTS) $(SPHINXBUILDDIR)
test:
$(NOSETESTS) $(PACKAGE) $(TEST_OPTIONS)
update:
pip install -r requirements_dev.txt
### semi-private targets used by polyconseil's CI (copy-pasted from blease) ###
.PHONY: reports jenkins-test jenkins-quality
reports:
mkdir -p reports
jenkins-test: reports
$(MAKE) test TEST_OPTIONS="--with-coverage --cover-package=$(PACKAGE) \
--cover-xml --cover-xml-file=reports/xmlcov.xml \
--with-xunit --xunit-file=reports/TEST-$(PACKAGE).xml \
-v \
$(TEST_OPTIONS)"
jenkins-quality: reports
pylint --rcfile=$(PYLINT_RC) $(PACKAGE) > reports/pylint.report || true