forked from Aunsiels/pyformlang
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
42 lines (31 loc) · 923 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
PYTHON ?= python3
PYTEST ?= pytest
PYLINT ?= pylint
TWINE ?= twine
test-code:
$(PYTEST) --showlocals -v pyformlang
test-code-xml:
$(PYTEST) --showlocals -v pyformlang --junit-xml test-reports/results.xml
test-code-profiling:
$(PYTEST) --showlocals -v pyformlang --profile
test-code-profiling-svg:
$(PYTEST) --showlocals -v pyformlang --profile-svg
test-coverage:
rm -rf coverage .coverage
$(PYTEST) pyformlang --showlocals -v --cov=pyformlang --cov-report=html:coverage
test-coverage-xml:
rm -rf reports/coverage.xml
$(PYTEST) pyformlang --showlocals -v --cov=pyformlang --cov-report=xml:reports/coverage.xml
style-check:
$(PYLINT) pyformlang > pylint.report || true
pycodestyle pyformlang > pep8.report || true
doc:
$(MAKE) -C doc html
build:
rm dist/*
$(PYTHON) setup.py sdist bdist_wheel
$(TWINE) upload dist/*
clean:
rm -rf coverage .coverage
$(MAKE) -C doc clean
.PHONY: doc clean build