Makefile 675 B

12345678910111213141516171819202122232425262728293031323334353637
  1. UID := $(shell id -u)
  2. GID := $(shell id -g)
  3. export UID
  4. export GID
  5. run:
  6. python app.py
  7. run_webui:
  8. @cd webui && npm run serve
  9. install:
  10. @echo "INSTALL MISSING!"
  11. run_tests:
  12. python -m unittest discover tests/
  13. run_coverage:
  14. @PYTHONWARNINGS="ignore::ResourceWarning" coverage run -m unittest discover tests/
  15. @coverage run --concurrency=eventlet --append -m unittest tests.client.pipeline_tests
  16. coverage html
  17. coverage report -m
  18. run_pylint:
  19. pylint --rcfile=.pylintrc app.py pycs
  20. build_docker:
  21. docker build . \
  22. --tag pycs:latest \
  23. --build-arg UID=${UID} \
  24. --build-arg GID=${GID}
  25. run_docker: build_docker
  26. @mkdir -p projects db external_data
  27. docker-compose up