From b1999e789fd0e3cfb6f3c8bbcb0ff123a2a39463 Mon Sep 17 00:00:00 2001 From: ryanmerolle Date: Thu, 2 Feb 2023 21:54:01 +0000 Subject: [PATCH] add test option to Makefile --- Makefile | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index aa6c2f9..fb3ba16 100644 --- a/Makefile +++ b/Makefile @@ -70,9 +70,13 @@ start: .PHONY: all ## Run all PLUGIN DEV targets all: setup makemigrations migrate collectstatic initializers start -#.PHONY: test -#test: -# ${VENV_PY_PATH} /opt/netbox/netbox/manage.py runserver test ${PLUGIN_NAME} +.PHONY: rebuild ## Run PLUGIN DEV targets to rebuild +rebuild: setup makemigrations migrate collectstatic start + +.PHONY: test +test: setup + ${VENV_PY_PATH} ${NETBOX_MANAGE_PATH}/manage.py makemigrations ${PLUGIN_NAME} --check + ${VENV_PY_PATH} ${NETBOX_MANAGE_PATH}/manage.py test ${PLUGIN_NAME} #relpatch: # $(eval GSTATUS := $(shell git status --porcelain))