-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
29 lines (24 loc) · 1.09 KB
/
Makefile
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
###################################################################################
# This Makefile is used for installing dependencies, running the dev server and #
# running tests. #
###################################################################################
# Run 'make help' if there is no specified target. -> i.e. 'make'
.DEFAULT_GOAL := help
# Print a small manual on how this Makefile can be used
help:
@echo "usage:"
@echo " make <target>"
@echo "targets:"
@echo " install Install project dependencies"
@echo " run Run development server at http://localhost:5001"
@echo " test Run all available tests of the project"
@echo " help List usage and available targets"
# Installs project dependencies and git pre-commit hooks.
install:
pipenv install
# Runs the development server which will be served at http://localhost:5001
run:
pipenv run flask run
# Runs all tests of the project
test:
pipenv run pytest --cov=src --cov-report=html --cov-report=term --cov-branch tests/