47 lines
1.1 KiB
Makefile
47 lines
1.1 KiB
Makefile
# Sigl Build and Test Scripts
|
|
|
|
export FLASK_APP := sigl.factory
|
|
|
|
shell serve db-init db-migrate db-upgrade db-downgrade db-populate : export FLASK_ENV := development
|
|
shell serve db-init db-migrate db-upgrade db-downgrade db-populate : export SIGL_CONFIG := ../config/dev.py
|
|
coverage coverage-html coverage-report test test-wip test-x : export FLASK_ENV := production
|
|
|
|
shell-psql serve-psql export : export FLASK_ENV := development
|
|
shell-psql serve-psql export : export SIGL_CONFIG := ../config/dev-docker.py
|
|
|
|
css :
|
|
npx tailwindcss -i ./src/css/tailwind.css -o static/sigl.dist.css
|
|
|
|
db-init :
|
|
poetry run flask db init
|
|
|
|
db-migrate :
|
|
poetry run flask db migrate
|
|
|
|
db-upgrade :
|
|
poetry run flask db upgrade
|
|
|
|
db-downgrade :
|
|
poetry run flask db downgrade
|
|
|
|
lint :
|
|
poetry run flake8
|
|
|
|
serve :
|
|
poetry run python -m sigl
|
|
|
|
shell :
|
|
poetry run flask shell
|
|
|
|
test :
|
|
poetry run python -m pytest tests
|
|
|
|
test-x :
|
|
poetry run python -m pytest tests -x
|
|
|
|
test-wip :
|
|
poetry run python -m pytest tests -m wip
|
|
|
|
.PHONY : db-init db-migrate db-upgrad db-downgrade \
|
|
lint shell serve \
|
|
test test-wip test-x |