summaryrefslogtreecommitdiff
path: root/Makefile
blob: c664c1b16df3a67e9f4f46cc0647f8dc6d79dc18 (plain)
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
.PHONY: docs
.SILENT: init-devel test test-tox test-coverage

all: clean test

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: clean-pyc clean-coverage
	-rm -rv build dist *.egg-info

test:
	py.test -v test_pytest_catchlog.py

test-coverage:
	coverage erase
	coverage run --source=pytest_catchlog --branch -m pytest -v
	coverage report
	coverage xml

audit:
	flake8 pytest_catchlog.py

wheel:
	python setup.py bdist_wheel

sdist:
	python setup.py sdist