-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathMakefile
53 lines (40 loc) · 1.09 KB
/
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
48
49
50
51
52
53
PYTEST = pytest tests
help:
@echo "test -- run tests"
@echo "test-unit -- run unit tests"
@echo "test-interpreter -- run tests for Scanner, Lexer, Parser and Interpreter"
@echo "test-integration -- run integration tests"
rc:
pyrcc5 pireal/resources/resources.qrc -o pireal/resources.py
clean:
rm -rf .pybuild/
rm -rf debian/debhelper-build-stamp
rm -rf debian/.debhelper
rm -rf debian/files
rm -rf debian/pireal/
rm -rf debian/pireal.postinst.debhelper
rm -rf debian/pireal.prerm.debhelper
rm -rf debian/pireal.substvars
rm -rf pireal.egg-info
rm -rf build/
check:
ruff check
test-unit:
pytest -v tests/unit -m "not interpreter"
test-interpreter:
python -m pytest -v -m interpreter --cov=pireal.interpreter --cov-report term-missing
test-integration:
pytest -v tests/integration -s
test: test-unit test-integration
deb:
debuild -b -uc -us
install:
pip install .
pip-install:
@pip install -r requirements.txt -r requirements-dev.txt
pip-compile:
@rm -f requirements*.txt
@pip-compile requirements.in
@pip-compile requirements-dev.in
pip-sync:
@pip-sync requirements*.txt