-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathMakefile
More file actions
31 lines (22 loc) · 674 Bytes
/
Makefile
File metadata and controls
31 lines (22 loc) · 674 Bytes
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
.PHONY: venv system-packages python-packages install unit-tests integration-tests tests run all
venv:
pip install --user virtualenv
virtualenv venv
system-packages:
sudo apt install python-pip -y
python-packages:
pip install -r requirements.txt
install: system-packages python-packages
unit-tests:
python -m unittest tests.test_domain_ports \
tests.test_database_memory \
tests.test_database_sqlite \
tests.test_sender_mqtt
integration-tests:
python -m unittest tests.test_handlers \
tests.test_interface_mqtt \
tests.test_interface_flask
tests: unit-tests integration-tests
run:
@python -m app
all: install tests run