1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- UID := $(shell id -u)
- GID := $(shell id -g)
- today := $(shell date +%Y-%m-%d)
- DB_BACKUPS := db.backups
- export UID
- export GID
- run:
- python app.py
- run_webui:
- @cd webui && npm run serve
- install:
- @echo "INSTALL MISSING!"
- run_tests:
- python -m unittest discover tests/
- run_coverage:
- @PYTHONWARNINGS="ignore::ResourceWarning" coverage run -m unittest discover tests/
- @coverage run --concurrency=eventlet --append -m unittest tests.client.pipeline_tests
- coverage html
- coverage report -m
- run_pylint:
- pylint --rcfile=.pylintrc app.py pycs
- build_docker:
- docker build . \
- --tag pycs:latest \
- --build-arg UID=${UID} \
- --build-arg GID=${GID}
- backup_db:
- @mkdir -p ${DB_BACKUPS}
- cp db/data.sqlite3 ${DB_BACKUPS}/data.${today}.sqlite3
- run_docker: build_docker
- @mkdir -p projects db external_data
- docker-compose up
|