-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy pathMakefile
56 lines (43 loc) · 1.82 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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
# The @ makes sure that the command itself isn't echoed in the terminal
help:
@echo "---------------HELP-----------------"
@echo "To clean the workspace type 'make clean'"
@echo "To install the projects dependencies type 'make install'"
@echo "To install the projects dependencies for development type 'make install-dev'"
@echo "To run the project type 'make run'"
@echo "To test the project type 'make test'"
@echo "To assess test coverage type 'make coverage'"
@echo "To generate the requirements.txt file for pip type 'make update-requirements-file'"
@echo "To sync current changes to a blitz for testing, type 'make sync-to-blitz'.\n ℹ️ Adjust connection values in scripts/push_to_blitz.sh"
@echo "To generate the client libraries type 'make generate-client-libs'"
@echo "To build the Docker regtest image type 'make docker-regtest-image'.\n ℹ️ The image will be available to docker as 'blitz_api'"
@echo "------------------------------------"
clean:
echo "Removing htmlcov folder and .coverage file"
rm -rf htmlcov .coverage
poetry run python -m pyclean .
install:
poetry run python -m pip install -r requirements.txt
install-dev:
poetry install
run:
poetry run python -m uvicorn app.main:app --reload
test:
poetry run python -m pytest
coverage:
poetry run python -m coverage run --source=. -m pytest
poetry run python -m coverage html
update-requirements-file:
poetry update && poetry export --without dev --output requirements.txt
sync-to-blitz:
bash scripts/sync_to_blitz.sh
generate-client-libs:
poetry run python gen_client_libs.py
docker-regtest-image:
docker build -f Dockerfile.regtest -t blitz_api .
remote-debugging-help:
bash scripts/remote_debugging.sh help
enable-remote-debugging:
bash scripts/remote_debugging.sh enable
disable-remote-debugging:
bash scripts/remote_debugging.sh disable