forked from nameko/nameko
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
39 lines (27 loc) · 964 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
.PHONY: test docs
ENABLE_BRANCH_COVERAGE ?= 0
AUTO_FIX_IMPORTS ?= 0
ifneq ($(AUTO_FIX_IMPORTS), 1)
autofix = --check-only
endif
static: imports flake8 pylint
test: static test_lib test_examples
flake8:
flake8 nameko test
pylint:
pylint --rcfile=pylintrc nameko -E
imports:
isort $(autofix) nameko test
test_lib:
BRANCH=$(ENABLE_BRANCH_COVERAGE) coverage run -m nameko test test -v --strict-markers --timeout 30
BRANCH=$(ENABLE_BRANCH_COVERAGE) coverage report
test_examples:
BRANCH=$(ENABLE_BRANCH_COVERAGE) nameko test docs/examples/test --strict-markers --timeout 30 --cov=docs/examples --cov-config=$(CURDIR)/.coveragerc
nameko test docs/examples/testing
test_docs: docs spelling #linkcheck
docs:
sphinx-build -n -b html -d docs/build/doctrees docs docs/build/html
spelling:
sphinx-build -b spelling -d docs/build/doctrees docs docs/build/spelling
linkcheck:
sphinx-build -W -b linkcheck -d docs/build/doctrees docs docs/build/linkcheck