-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathMakefile
47 lines (34 loc) · 790 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
42
43
44
45
46
47
.PHONY: docs
.SILENT: init-devel test test-tox test-coverage
all: clean test
clean-docs:
-rm -rfv docs/_build
clean-tox:
-rm -rfv .tox
clean-coverage:
-rm .coverage*
-rm coverage.xml
-rm -rfv htmlcov
clean-pyc:
-find . -path './.tox' -prune -or \
-name '__pycache__' -exec rm -rv {} +
-find . -path './.tox' -prune -or \
\( -name '*.pyc' -or -name '*.pyo' \) -exec rm -rv {} +
clean-all: clean-tox clean-docs clean
clean: clean-pyc clean-coverage
-rm -rv build dist *.egg-info
sync-dependencies:
pip install -r requirements/develop.txt
test:
py.test -sv test_chronometer.py
test-tox:
tox
test-coverage:
coverage erase
coverage run --source=chronometer --branch -m pytest -v
coverage report
coverage xml
audit:
flake8 chronometer
docs:
$(MAKE) -C docs html