summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile9
1 files changed, 7 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index e7ec035..1aa1e36 100644
--- a/Makefile
+++ b/Makefile
@@ -12,7 +12,12 @@ lint:
pycodestyle ickapi
pylint -j0 -d missing-docstring ickapi
-test: lint
+apitest:
+ gunicorn --config gunicorn.conf ickapi.main:app > /dev/null 2>&1 &
+ pytest --rootdir=apitest || true
+ pkill -F ickapi.pid
+
+test: lint apitest
run:
gunicorn --config gunicorn.conf --reload ickapi.main:app
@@ -25,4 +30,4 @@ clean:
reset: clean
rm -rf env/
-.PHONY: all env lint test run clean reset
+.PHONY: all env lint apitest test run clean reset