add test command

This commit is contained in:
Andreas Zweili 2019-07-13 15:31:42 +02:00
parent ff5da6f114
commit 86cb63a6e9
1 changed files with 3 additions and 0 deletions

View File

@ -5,6 +5,9 @@ SHELL=/bin/bash
docker:
docker-compose up
test:
docker-compose run web pytest network_inventory/inventory/tests
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