/
Makefile
41 lines (29 loc) · 1014 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
PYTHON ?= python3
PYTEST ?= pytest
PYLINT ?= pylint
.EXPORT_ALL_VARIABLES:
PYTHONPATH = PYTHONPATH:$(pwd)
test-code:
$(PYTEST) --showlocals -v quasimodo_website
test-code-xml:
$(PYTEST) --showlocals -v quasimodo_website --junit-xml test-reports/results.xml
test-code-profiling:
$(PYTEST) --showlocals -v quasimodo_website --profile
test-code-profiling-svg:
$(PYTEST) --showlocals -v quasimodo_website --profile-svg
test-coverage:
rm -rf coverage .coverage
$(PYTEST) quasimodo_website --showlocals -v --cov=quasimodo_website --cov-report=html:coverage
test-coverage-xml:
rm -rf reports/coverage.xml
$(PYTEST) quasimodo_website --showlocals -v --cov=quasimodo_website --cov-report=xml:reports/coverage.xml
style-check:
$(PYLINT) --rcfile=pylint.cfg quasimodo_website > pylint.report || true
pycodestyle quasimodo_website > pep8.report || true
build:
rm -f dist/*
$(PYTHON) setup.py sdist bdist_wheel
clean:
rm -rf coverage .coverage
$(MAKE) -C doc clean
.PHONY: clean build style-check