environment_sensors/Makefile

29 lines
463 B
Makefile
Raw Normal View History

2022-08-29 18:19:26 +02:00
SHELL=/usr/bin/env bash
2019-10-12 20:34:39 +02:00
.PHONY: run
2022-08-29 18:19:26 +02:00
run: venv
( \
./run.sh; \
)
2019-10-12 20:34:39 +02:00
2022-08-29 18:19:26 +02:00
test: venv
( \
2020-03-10 21:22:36 +01:00
export DJANGO_SETTINGS_MODULE=sensors.settings.production; \
2022-08-29 18:30:53 +02:00
pytest --nomigrations --cov=. --cov-report=html collector/; \
)
2019-10-12 20:34:39 +02:00
2020-03-10 21:22:36 +01:00
migrations:
( \
export DJANGO_SETTINGS_MODULE=sensors.settings.development; \
./manage.py makemigrations collector; \
)
2022-08-29 18:19:26 +02:00
venv:
nix build .#venv -o venv
2019-10-13 11:06:46 +02:00
2019-10-12 20:34:39 +02:00
clean:
2022-08-29 18:19:26 +02:00
rm venv
2019-10-12 20:34:39 +02:00
find . \( -name __pycache__ -o -name "*.pyc" \) -delete
rm -rf htmlcov/