summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorIvan Dolgov <ivan@dolgov.fi>2019-04-06 15:17:08 +0300
committerIvan Dolgov <ivan@dolgov.fi>2019-04-06 15:17:08 +0300
commit0146d3488826d82292b91426ea1d0655bfe38a9d (patch)
treed09136f905b1ac54d5660e290537a1cb81e35b53 /Makefile
parentf09185c5c2bc327103a61ca4c9ed2f8ae2916802 (diff)
parentab9c02fd365dde7c4f26ff57898410504e03b895 (diff)
downloadickapi-master.tar.gz
Merge branch 'pyry/apitest'HEADmaster
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