Skip to content

Commit 09f67a4

Browse files
committed
add in devcontainer testing
1 parent 8354c4f commit 09f67a4

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

Makefile

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,9 +73,10 @@ all: setup makemigrations migrate collectstatic initializers start
7373
.PHONY: rebuild ## Run PLUGIN DEV targets to rebuild
7474
rebuild: setup makemigrations migrate collectstatic start
7575

76-
#.PHONY: test
77-
#test:
78-
# ${VENV_PY_PATH} /opt/netbox/netbox/manage.py runserver test ${PLUGIN_NAME}
76+
.PHONY: test
77+
test: setup
78+
${VENV_PY_PATH} ${NETBOX_MANAGE_PATH}/manage.py makemigrations ${PLUGIN_NAME} --check
79+
${VENV_PY_PATH} ${NETBOX_MANAGE_PATH}/manage.py test ${PLUGIN_NAME}
7980

8081
#relpatch:
8182
# $(eval GSTATUS := $(shell git status --porcelain))

0 commit comments

Comments
 (0)