network_inventory/Makefile

19 lines
433 B
Makefile
Raw Normal View History

2019-07-13 15:25:32 +02:00
SHELL=/bin/bash
.PHONY: docker
docker:
docker-compose up
2019-07-13 15:31:42 +02:00
test:
docker-compose run web pytest network_inventory/inventory/tests
2019-07-13 15:25:32 +02:00
venv/bin/activate: requirements/local.txt
test -d venv || python3 -m venv venv
. venv/bin/activate; pip3 install wheel; pip3 install -Ur requirements/local.txt
touch venv/bin/activate
rm -rf venv/
sudo find . \( -name __pycache__ -o -name "*.pyc" \) -delete
docker-compose down -v --rmi local