network_inventory/Makefile

24 lines
454 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 -n 4 network_inventory/ --nomigrations --cov=. --cov-report=html
2019-07-13 15:31:42 +02:00
local:
python3 -m venv venv
( \
source venv/bin/activate; \
pip3 install -r requirements/local.txt; \
)
2019-07-13 15:25:32 +02:00
2019-08-10 15:08:52 +02:00
clean:
2019-07-13 15:25:32 +02:00
rm -rf venv/
sudo find . \( -name __pycache__ -o -name "*.pyc" \) -delete
2019-08-10 15:08:52 +02:00
sudo rm -rf htmlcov/
sudo rm network_inventory/.second_run
2019-07-13 15:25:32 +02:00
docker-compose down -v --rmi local