-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
33 lines (25 loc) · 819 Bytes
/
Makefile
File metadata and controls
33 lines (25 loc) · 819 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
coverage_options = --include='mycroft_holmes/*' --omit='test/*'
init:
pip install -e .[dev]
test:
pytest -vv
lint:
pylint mycroft_holmes
coverage:
rm -f .coverage*
rm -rf htmlcov/*
coverage run -p -m pytest -vv
coverage combine
coverage html -d htmlcov $(coverage_options)
coverage xml -i
coverage report $(coverage_options)
# UI
server_dev:
FLASK_ENV=development COMMIT_SHA=`git rev-parse --short HEAD` \
gunicorn 'mycroft_holmes.app.app:setup_app()' --log-level DEBUG --worker-class sync --reload -b 0.0.0.0:5000 --workers 1 --access-logfile -
server:
gunicorn 'mycroft_holmes.app.app:setup_app()' --worker-class sync -b 0.0.0.0:5000 --workers 4 --access-logfile -
# test database
mysql_cli:
mysql -h127.0.0.1 -u${TEST_DATABASE_USER} -p${TEST_DATABASE_PASSWORD} ${TEST_DATABASE}
.PHONY: test