Activating venv is not necessary.
This commit is contained in:
parent
e61424586e
commit
4aa7608734
10
Makefile
10
Makefile
@ -13,22 +13,18 @@ $(VENV)/touchfile: requirements.txt
|
|||||||
test -d $(VENV) || python3 -m venv $(VENV)
|
test -d $(VENV) || python3 -m venv $(VENV)
|
||||||
touch $(VENV)/touchfile
|
touch $(VENV)/touchfile
|
||||||
|
|
||||||
.PHONY: venv
|
|
||||||
venv: $(VENV)/touchfile ## Make a new virtual environment
|
|
||||||
source $(BIN)/activate
|
|
||||||
|
|
||||||
.PHONY: install
|
.PHONY: install
|
||||||
install: venv ## Make venv and install requirements
|
install: $(VENV)/touchfile ## Make venv and install requirements
|
||||||
$(BIN)/pip install --upgrade -r requirements.txt
|
$(BIN)/pip install --upgrade -r requirements.txt
|
||||||
|
|
||||||
.PHONY: migrate
|
.PHONY: migrate
|
||||||
migrate: venv ## Make and run migrations
|
migrate: ## Make and run migrations
|
||||||
$(PYTHON) manage.py makemigrations
|
$(PYTHON) manage.py makemigrations
|
||||||
$(PYTHON) manage.py migrate
|
$(PYTHON) manage.py migrate
|
||||||
$(PYTHON) manage.py collectstatic --noinput
|
$(PYTHON) manage.py collectstatic --noinput
|
||||||
|
|
||||||
.PHONY: test
|
.PHONY: test
|
||||||
test: venv ## Run tests
|
test: ## Run tests
|
||||||
$(PYTHON) manage.py test application --verbosity=0 --parallel --failfast
|
$(PYTHON) manage.py test application --verbosity=0 --parallel --failfast
|
||||||
|
|
||||||
.PHONY: pull
|
.PHONY: pull
|
||||||
|
Loading…
Reference in New Issue
Block a user