gerbonara/Makefile
Paulo Henrique Silva ef589a0640
Migrate to pytest (#111)
* Migrate to pytest

All tests were update to use pytest.

Tests were alse black formatted. Eventually all code
will be black formatted but need to merge some PRs first.
2019-11-26 00:37:41 -03:00

39 lines
611 B
Makefile

PYTHON ?= python
PYTEST ?= pytest
DOC_ROOT = doc
EXAMPLES = examples
.PHONY: clean
clean: doc-clean
find . -name '*.pyc' -delete
rm -rf *.egg-info
rm -f coverage.xml
.PHONY: test
test:
$(PYTEST)
.PHONY: test-coverage
test-coverage:
rm -rf coverage.xml
$(PYTEST) --cov=./ --cov-report=xml
.PHONY: install
install:
PYTHONPATH=. $(PYTHON) setup.py install
.PHONY: doc-html
doc-html:
(cd $(DOC_ROOT); make html)
.PHONY: doc-clean
doc-clean:
(cd $(DOC_ROOT); make clean)
.PHONY: examples
examples:
PYTHONPATH=. $(PYTHON) examples/cairo_example.py
PYTHONPATH=. $(PYTHON) examples/pcb_example.py