21 lines
600 B
Makefile
21 lines
600 B
Makefile
build:
|
|
docker build --target run -t git.roboces.dev/catalin/secretsanta:latest .
|
|
|
|
run--sls:
|
|
@echo "Activating virtual environment and starting serverless offline"
|
|
@. .venv/bin/activate && cd apps/http/sls && npx sls offline
|
|
|
|
run--litestar:
|
|
@echo "Starting litestar"
|
|
@. cd apps/http/litestar/ && pdm run litestar run
|
|
|
|
deploy--sls:
|
|
@echo "Deploying via serverless framework"
|
|
@. cd apps/http/sls && pdm export -G sls -f requirements --prod > requirements.txt && npx sls deploy
|
|
|
|
lint:
|
|
pre-commit run --all-files --color always
|
|
|
|
tests--unit:
|
|
pdm run pytest --cov secretsanta tests
|
|
coverage html
|