environment_sensors/Makefile

39 lines
702 B
Makefile
Raw Normal View History

2019-10-12 20:34:39 +02:00
SHELL=/bin/bash
.PHONY: run
run: venv
2019-10-13 10:40:30 +02:00
python3 sensors
2019-10-12 20:34:39 +02:00
2019-10-13 11:06:46 +02:00
test: venv/development
( \
source venv/bin/activate; \
pytest --nomigrations --cov=. --cov-report=term sensors/; \
)
2019-10-12 20:34:39 +02:00
2019-10-13 11:06:46 +02:00
venv/development:
test -d venv || python3 -m venv venv --system-site-packages
2019-10-12 20:34:39 +02:00
( \
source venv/bin/activate; \
pip3 install -r requirements/development.txt; \
)
2019-10-13 11:06:46 +02:00
touch venv/development
2019-10-12 20:34:39 +02:00
venv:
test -d venv || python3 -m venv venv --system-site-packages
2019-10-12 20:34:39 +02:00
( \
source venv/bin/activate; \
2019-10-14 18:41:07 +02:00
pip3 install -r requirements/base.txt; \
2019-10-12 20:34:39 +02:00
)
2019-10-13 11:06:46 +02:00
venv/bin/activate: venv
( \
source venv/bin/activate; \
touch venv/bin/activate; \
)
2019-10-12 20:34:39 +02:00
clean:
rm -rf venv/
find . \( -name __pycache__ -o -name "*.pyc" \) -delete
rm -rf htmlcov/