network_inventory/Makefile
Andreas Zweili bfea2ca2c1 remove the .second_run file with -f
If the file isn't present the Makefile fails without the -f flag
2020-01-07 18:11:32 +01:00

24 lines
420 B
Makefile

SHELL=/bin/bash
.PHONY: docker
docker:
docker-compose up
test:
docker-compose run web pytest -n 4 --nomigrations --cov=. --cov-report=html
local:
python3 -m venv venv
( \
source venv/bin/activate; \
pip3 install -r requirements/local.txt; \
)
clean:
rm -rf venv/
sudo find . \( -name __pycache__ -o -name "*.pyc" \) -delete
sudo rm -rf htmlcov/
sudo rm -f .second_run
docker-compose down -v --rmi local