-
Notifications
You must be signed in to change notification settings - Fork 4
/
Makefile
48 lines (34 loc) · 1.02 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
.PHONY: tests coverage coverage-html devinstall tox docs clean-build
APP=src/
COV=markey
OPTS=
help:
@echo "tests - run all non-selenium tests"
@echo "coverage - run all non-selenium tests with coverage enabled"
@echo "coverage-html - run all non-selenium tests with coverage html export enabled"
@echo "devinstall - install all packages required for development"
@echo "docs - generate Sphinx HTML documentation, including API docs"
@echo "clean-build - Clean build related files"
tests:
py.test ${OPTS} ${APP}
coverage:
py.test --cov=${COV} --cov-report=term-missing ${OPTS} ${APP}
coverage-html:
py.test --cov=${COV} --cov-report=html ${OPTS} ${APP}
devinstall:
pip install -e .
pip install -e .[docs]
pip install -e .[tests]
pip install -e .[dev]
tox:
tox -c tox.ini
docs: clean-build
sphinx-apidoc --force -o docs/modules/ src/markey
$(MAKE) -C docs clean
$(MAKE) -C docs html
clean-build:
rm -fr build/ src/build
rm -fr dist/ src/dist
rm -fr *.egg-info src/*.egg-info
rm -fr htmlcov/
$(MAKE) -C docs clean