Files
django-dav-events/Makefile
Jens Kleineheismann 082c9f4b74
All checks were successful
buildbot/django-dav-events--test Build done.
Added deploy rule to Makefile (used as deploy pipeline for CI/CD)
2023-02-17 13:17:17 +01:00

21 lines
469 B
Makefile

PYTHON := python
DEPLOY_DIR ?= /var/www/wsgi/django-dav-events
.PHONY: default help test deploy
default: help
help:
@echo "The make stuff is used by our CI/CD buildbot."
test:
tox
deploy:
git -C "$(DEPLOY_DIR)/src/django-dav-events" pull
"$(DEPLOY_DIR)/python/bin/python" "$(DEPLOY_DIR)/django/manage.py" migrate --noinput
"$(DEPLOY_DIR)/python/bin/python" "$(DEPLOY_DIR)/django/manage.py" collectstatic --noinput
touch "$(DEPLOY_DIR)/django/main/wsgi.py"